diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..7c113e3 Binary files /dev/null and b/dist.zip differ diff --git a/src/login.vue b/src/login.vue index ad2aa47..660be35 100644 --- a/src/login.vue +++ b/src/login.vue @@ -150,7 +150,7 @@ export default { window.console.log(res); localStorage.setItem("token", res.data.data); this.$router.push({ - path: `/` + path: '/' }); }); } diff --git a/src/router.js b/src/router.js index 298be4f..3ee0a02 100644 --- a/src/router.js +++ b/src/router.js @@ -18,7 +18,7 @@ import sign from "./sign" import ArticleDetail from "./articledetail.vue" Vue.use(Router) const router=new Router({ - mode:'history', + mode:'hash', routes: [ { path: '/articledetail', diff --git a/vue.config.js b/vue.config.js index e69de29..ce54aa4 100644 --- a/vue.config.js +++ b/vue.config.js @@ -0,0 +1,4 @@ + +module.exports = { + publicPath: "./" +} \ No newline at end of file