File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { boardsApi } from '@/api'
33import  Boards  from  '@/views/Boards.vue' 
44import  Threads  from  '@/views/Threads.vue' 
55import  About  from  '@/views/About.vue' 
6+ import  Settings  from  '@/views/Settings.vue' 
67import  NotFound  from  '@/views/NotFound.vue' 
78import  NProgress  from  'nprogress' 
89
@@ -23,6 +24,12 @@ const routes = [
2324    } ) , 
2425    meta : {  requiresAuth : false ,  bodyClass : 'threads'  } 
2526  } , 
27+   { 
28+     path : '/settings' , 
29+     name : 'Settings' , 
30+     component : Settings , 
31+     meta : {  requiresAuth : true ,  bodyClass : 'settings'  } 
32+   } , 
2633  { 
2734    path : '/about' , 
2835    name : 'About' , 
Original file line number Diff line number Diff line change 1+ <template >
2+   <h1 >{{title}}</h1 >
3+ </template >
4+ 
5+ <script >
6+ import  { reactive , toRefs  } from  ' vue' 
7+ 
8+ export  default  {
9+   name:  ' Settings'  
10+   setup () { 
11+     const  v  =  reactive ({ 
12+       title:  ' Settings Page'  
13+     }) 
14+     return  { ... toRefs (v) } 
15+   } 
16+ } 
17+ script >
18+ 
19+ <style  lang="scss">
20+ style >
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments