Parcourir la source

更换图标、名称

wangyang il y a 5 ans
Parent
commit
c9e2f29711
3 fichiers modifiés avec 11 ajouts et 11 suppressions
  1. 9 9
      src/router/config.js
  2. 1 1
      src/settings.js
  3. 1 1
      vue.config.js

+ 9 - 9
src/router/config.js

@@ -23,7 +23,7 @@ export const asyncRouterMap = [
         path: '',
         name: '菜谱列表',
         component: () => import('@/views/recipe/index'),
-        meta: { title: '菜谱列表', icon: 'dashboard' }
+        meta: { title: '菜谱列表', icon: 'recipe' }
       },
       {
         path: ':id/food',
@@ -49,27 +49,27 @@ export const asyncRouterMap = [
         path: '',
         name: '食物列表',
         component: () => import('@/views/food/index'),
-        meta: { title: '食物列表', icon: 'dashboard' }
+        meta: { title: '食物列表', icon: 'food' }
       },
       {
         path: 'create',
         name: '食物创建',
         component: () => import('@/views/food/create'),
-        meta: { title: '食物创建', icon: 'dashboard' },
+        meta: { title: '食物创建', icon: 'food' },
         hidden: true
       },
       {
         path: 'edit/:id',
         name: '食物编辑',
         component: () => import('@/views/food/edit'),
-        meta: { title: '食物编辑', icon: 'dashboard' },
+        meta: { title: '食物编辑', icon: 'food' },
         hidden: true
       },
       {
         path: ':id/nutrient',
         name: '营养素关联',
         component: () => import('@/views/food/nutrient'),
-        meta: { title: '营养素关联', icon: 'dashboard' },
+        meta: { title: '营养素关联', icon: 'food' },
         hidden: true
       },
       {
@@ -111,7 +111,7 @@ export const asyncRouterMap = [
         path: '',
         name: '营养素列表',
         component: () => import('@/views/nutrient/index'),
-        meta: { title: '营养素列表', icon: 'dashboard' }
+        meta: { title: '营养素列表', icon: 'nutrient' }
       }
     ]
   },
@@ -124,7 +124,7 @@ export const asyncRouterMap = [
         path: '',
         name: '单位列表',
         component: () => import('@/views/unit/index'),
-        meta: { title: '单位列表', icon: 'dashboard' }
+        meta: { title: '单位列表', icon: 'unit' }
       }
     ]
   },
@@ -138,7 +138,7 @@ export const asyncRouterMap = [
         path: '',
         name: '用户列表',
         component: () => import('@/views/user/index'),
-        meta: { title: '用户列表', icon: 'dashboard' }
+        meta: { title: '用户列表', icon: 'user' }
       }
     ]
   },
@@ -151,7 +151,7 @@ export const asyncRouterMap = [
         path: '',
         name: '营养素模板列表',
         component: () => import('@/views/nutrientTemplate/index'),
-        meta: { title: '营养素模板列表', icon: 'dashboard' }
+        meta: { title: '营养素模板列表', icon: 'template' }
       },
       {
         path: ':id/detail',

+ 1 - 1
src/settings.js

@@ -1,6 +1,6 @@
 module.exports = {
 
-  title: 'Vue Admin Template',
+  title: 'FEUC',
 
   /**
    * @type {boolean} true | false

+ 1 - 1
vue.config.js

@@ -6,7 +6,7 @@ function resolve(dir) {
   return path.join(__dirname, dir)
 }
 
-const name = defaultSettings.title || 'vue Admin Template' // page title
+const name = defaultSettings.title || 'FEUC' // page title
 
 // If your port is set to 80,
 // use administrator privileges to execute the command line.