File tree Expand file tree Collapse file tree 6 files changed +12
-4
lines changed Expand file tree Collapse file tree 6 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,16 @@ npm install
99# serve with hot reload at localhost:9000
1010npm run dev
1111npm run build
12+
13+ npm run mock
1214```
1315
16+ 1 . ** 启动mock服务**
17+ npm run mock
18+ 2 . ** 启动dev server**
19+ npm run dev
20+
21+
1422- #### 打包发布,修改根路径名
15231 . 修改 ** [ ./Vue-Admin/config/index.js] ( https://github.com/lanux/Vue-Admin/blob/master/config/index.js ) ** 参数: build .assetsPublicPath
1624``` javascript
File renamed without changes.
Original file line number Diff line number Diff line change 11import axios from "axios" ;
22import qs from "qs" ;
3- import auth from ".. /auth" ;
3+ import auth from "./auth" ;
44import { getBaseUrl } from "../common/utils" ;
55import { MessageBox } from "element-ui" ;
66
Original file line number Diff line number Diff line change 5757 import {mapGetters , mapActions , mapMutations } from ' vuex'
5858 import types from " ../../store/mutation-types"
5959 import * as api from " ../../api"
60- import auth from ' ../../auth'
60+ import auth from ' ../../common/ auth'
6161 import * as sysApi from ' ../../services/sys'
6262
6363 export default {
Original file line number Diff line number Diff line change 4848<script >
4949 import types from ' ../store/mutation-types'
5050 import * as api from " ../api"
51- import auth from ' ../auth'
51+ import auth from ' ../common/ auth'
5252 import * as sysApi from ' ../services/sys'
5353 import {mapGetters , mapActions , mapMutations } from ' vuex'
5454
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import routeConfig from "./routes";
44import { sync } from "vuex-router-sync" ;
55import store from "../store" ;
66import types from "../store/mutation-types" ;
7- import auth from "../auth" ;
7+ import auth from "../common/ auth" ;
88
99//加载路由中间件
1010Vue . use ( VueRouter )
You can’t perform that action at this time.
0 commit comments