保存进度!
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-14 15:12:46
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-06 00:36:26
 | 
			
		||||
 * @LastEditTime: 2023-02-14 23:10:53
 | 
			
		||||
 * @FilePath: /IT工具综合平台/.eslintrc.js
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
@@ -25,7 +25,7 @@ module.exports = {
 | 
			
		||||
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
 | 
			
		||||
    "no-unused-vars": "warn",
 | 
			
		||||
    "semi": ["error", "always",],//控制行尾部分号
 | 
			
		||||
    "comma-dangle": ["error", {
 | 
			
		||||
    "comma-dangle": ["warn", {
 | 
			
		||||
      "arrays": "always",
 | 
			
		||||
      "objects": "always",
 | 
			
		||||
      "imports": "never",
 | 
			
		||||
 
 | 
			
		||||
@@ -2,8 +2,8 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-14 15:12:46
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-01-30 21:43:21
 | 
			
		||||
 * @FilePath: \IT工具综合平台\src\main.js
 | 
			
		||||
 * @LastEditTime: 2023-02-14 23:08:57
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/main.js
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
@@ -31,7 +31,7 @@ const app = createApp(App);
 | 
			
		||||
 | 
			
		||||
app.component("SvgIcon", SvgIcon);
 | 
			
		||||
 | 
			
		||||
for (const [key, component] of Object.entries(ElementPlusIconsVue))
 | 
			
		||||
for (const [key, component,] of Object.entries(ElementPlusIconsVue))
 | 
			
		||||
{
 | 
			
		||||
    app.component(key, component);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -19,10 +19,10 @@ const routes = [
 | 
			
		||||
    hidden: true,
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    path:"/error-page",
 | 
			
		||||
    path: "/error-page",
 | 
			
		||||
    name: "ErrorPage",
 | 
			
		||||
    hidden: true,
 | 
			
		||||
    component: ()=> import("@/views/ErrorPage.vue"),
 | 
			
		||||
    component: () => import("@/views/ErrorPage.vue"),
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    path: "/login",
 | 
			
		||||
@@ -35,7 +35,7 @@ const routes = [
 | 
			
		||||
    name: "Home",
 | 
			
		||||
    hidden: true,
 | 
			
		||||
    meta: {
 | 
			
		||||
      title: "控制台"
 | 
			
		||||
      title: "控制台",
 | 
			
		||||
    },
 | 
			
		||||
    component: () => import("../layout/Index.vue"),
 | 
			
		||||
  },
 | 
			
		||||
@@ -152,14 +152,14 @@ const routes = [
 | 
			
		||||
          icon: "switch",
 | 
			
		||||
        },
 | 
			
		||||
        component: () => import("../views/network/switch/SwitchManager.vue"),
 | 
			
		||||
      }
 | 
			
		||||
      },
 | 
			
		||||
    ],
 | 
			
		||||
  },
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
const router = createRouter({
 | 
			
		||||
  history: createWebHashHistory(),
 | 
			
		||||
  routes
 | 
			
		||||
  routes,
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
//前置路由守卫
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,7 @@ const store = createStore({
 | 
			
		||||
  modules: {
 | 
			
		||||
    app,
 | 
			
		||||
    requirement,
 | 
			
		||||
  }
 | 
			
		||||
  },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
export default store;
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-01-07 22:25:43
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-05 10:47:28
 | 
			
		||||
 * @LastEditTime: 2023-02-14 23:10:22
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/store/modules/app.js
 | 
			
		||||
 * @Description: vuex中存放全局数据的模块
 | 
			
		||||
 * 
 | 
			
		||||
@@ -29,7 +29,7 @@ const mutations = {
 | 
			
		||||
    SET_USERINFO(state, userInfo)
 | 
			
		||||
    {
 | 
			
		||||
        state.userInfo = userInfo;
 | 
			
		||||
    }
 | 
			
		||||
    },
 | 
			
		||||
};
 | 
			
		||||
const actions = {};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user