Skip to content

Commit 08a1aab

Browse files
author
zhongzhenlong
committed
更新截图
1 parent f498dc8 commit 08a1aab

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@ npm install
99
# serve with hot reload at localhost:9000
1010
npm run dev
1111
npm 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
- #### 打包发布,修改根路径名
1523
1. 修改 **[./Vue-Admin/config/index.js](https://github.com/lanux/Vue-Admin/blob/master/config/index.js)** 参数:build.assetsPublicPath
1624
```javascript
File renamed without changes.

src/common/axios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from "axios";
22
import qs from "qs";
3-
import auth from "../auth";
3+
import auth from "./auth";
44
import { getBaseUrl } from "../common/utils";
55
import { MessageBox } from "element-ui";
66

src/pages/layout/header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
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 {

src/pages/login.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
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

src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import routeConfig from "./routes";
44
import {sync} from "vuex-router-sync";
55
import store from "../store";
66
import types from "../store/mutation-types";
7-
import auth from "../auth";
7+
import auth from "../common/auth";
88

99
//加载路由中间件
1010
Vue.use(VueRouter)

0 commit comments

Comments
 (0)