Skip to content

Commit 71ef2e2

Browse files
committed
window.router 注册全局
1 parent 5ce3fb2 commit 71ef2e2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import router from './router'
33
import store from './store'
44
import 'font-awesome/css/font-awesome.css'
55

6+
window.router = router
67
export {
78
App,
89
router,

src/store/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const getData = ({ commit,state },{apiUrl = state.apiUrl, postData = null
3838
let apiUrl = state.mainData.apiUrl.authCheck
3939
// 等待三秒验证登陆状态
4040
setTimeout(() => {
41-
// getData({ commit,state },{apiUrl, thenFunction})
41+
getData({ commit,state },{apiUrl, thenFunction})
4242
}, 3000);
4343

4444
if (catchFunction) {

0 commit comments

Comments
 (0)