File tree 6 files changed +12
-54
lines changed
6 files changed +12
-54
lines changed Original file line number Diff line number Diff line change 12
12
"@codemirror/lang-html" : " ^0.20.0" ,
13
13
"@codemirror/lang-javascript" : " ^0.20.0" ,
14
14
"@codemirror/theme-one-dark" : " ^0.20.0" ,
15
+ "@element-plus/icons-vue" : " ^2.3.1" ,
15
16
"axios" : " ^0.27.2" ,
16
17
"element-plus" : " ^2.7.0" ,
17
18
"vue" : " ^3.4.0" ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ let vue = {
20
20
import request from './request.js' ;
21
21
util . request = request . request ;
22
22
23
- import { router } from '../router' ;
23
+ import router from '../router' ;
24
24
25
25
// 注销登录
26
26
util . logout = function ( ) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { createApp } from 'vue'
11
11
import App from './App.vue'
12
12
import './index.css'
13
13
import 'virtual:uno.css'
14
- import router from './plugins/ router' ;
14
+ import router from './router' ;
15
15
import ElementPlus from 'element-plus'
16
16
import zhCn from 'element-plus/es/locale/lang/zh-cn'
17
17
import 'element-plus/dist/index.css' //引入element-plus样式
Original file line number Diff line number Diff line change 11
11
import qs from 'qs' ;
12
12
import axios from "axios" ;
13
13
import base from '../libs/base' ;
14
- import { router } from '../router' ;
14
+ import router from '../router' ;
15
15
16
16
// 配置参考: https://github.com/axios/axios#request-config
17
17
// axios.defaults.headers.common['CloudId'] = '0'; // 云应用ID
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- /**
2
- * +----------------------------------------------------------------------
3
- * | uiadmin [ 渐进式快速开发接口后台 ]
4
- * +----------------------------------------------------------------------
5
- * | Copyright (c) 2018-2022 http://uiadmin.jiangruyi.com All rights reserved.
6
- * +----------------------------------------------------------------------
7
- * | Author: jry <[email protected] >
8
- * +----------------------------------------------------------------------
9
- */
10
-
11
- import { createRouter , createWebHistory , createWebHashHistory } from 'vue-router' ;
12
-
13
- const routes = [
14
- {
15
- path : '/base' ,
16
- component : ( ) => import ( '@/pages/base.vue' ) ,
17
- children : [
18
- {
19
- path : '/' ,
20
- component : ( ) => import ( '@/pages/home.vue' )
21
- } ,
22
- {
23
- path : '/user/login' ,
24
- component : ( ) => import ( '@/pages/user/login.vue' )
25
- } ,
26
- {
27
- path : '/user/register' ,
28
- component : ( ) => import ( '@/pages/user/register.vue' )
29
- }
30
- ]
31
- } ,
32
- ]
33
-
1
+ import { createRouter , createWebHistory } from 'vue-router' ;
2
+ import routes from '~pages' ;
3
+
34
4
const router = createRouter ( {
35
- // 4. 内部提供了 history 模式的实现。为了简单起见,我们在这里使用 hash 模式。
36
- history : createWebHashHistory ( ) ,
37
- routes, // `routes: routes` 的缩写
38
- } )
39
-
40
- export {
41
- router ,
42
- createRouter
43
- }
5
+ history : createWebHistory ( ) ,
6
+ routes,
7
+ } ) ;
8
+
9
+ export default router ;
You can’t perform that action at this time.
0 commit comments