first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import http from "@/service";
import utils from "@/utils";
export default {
devBaseUrl: 'http://127.0.0.1:3000/api', // 开发阶段
testBaseUrl: '', // 测试阶段
prodBaseUrl: '', // 正式阶段
apiList: {
class: '/index/class'
},
VuePlugins: [ ElementUI ],
VueComponents: [],
NotVuePlugins: [
{ n: '$http', v: http },
{ n: '$utils', v: utils },
],
CheckBaseUrl: function () {
switch (process.env.NODE_ENV) {
case "development":
return this.devBaseUrl;
break;
case "test":
return this.testBaseUrl;
break;
case "production":
return this.prodBaseUrl;
break;
default:
break;
}
}
}

View File

@@ -0,0 +1,17 @@
export default {
path: '/',
name: 'layout',
component: () => import(/* webpackChunkName: "Reg" */ '../views/_.vue'),
children: [
{
path: '/home',
name: 'home',
component: () => import(/* webpackChunkName: "home" */ '../views/Home/Home.vue'),
meta: {
isLogin: true,
title: '首页',
isAlive: false
}
}
]
}