projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert all remaining tabs by 2spaces
[vchess.git]
/
client
/
src
/
router.js
diff --git
a/client/src/router.js
b/client/src/router.js
index
1eb88f9
..
599cfcb
100644
(file)
--- a/
client/src/router.js
+++ b/
client/src/router.js
@@
-5,7
+5,7
@@
import Hall from "./views/Hall.vue";
Vue.use(Router);
function loadView(view) {
Vue.use(Router);
function loadView(view) {
-
return () => import(/* webpackChunkName: "view-[request]" */ `@/views/${view}.vue`)
+ return () => import(/* webpackChunkName: "view-[request]" */ `@/views/${view}.vue`)
}
import { ajax } from "@/utils/ajax";
}
import { ajax } from "@/utils/ajax";
@@
-46,8
+46,8
@@
const router = new Router({
localStorage["myname"] = res.name;
localStorage["myid"] = res.id;
}
localStorage["myname"] = res.name;
localStorage["myid"] = res.id;
}
-
// TODO: I don't like these 2 lines, "next('/')" should be enough
-
window.location = "/";
+ // TODO: I don't like these 2 lines, "next('/')" should be enough
+ window.location = "/";
next();
}
);
next();
}
);