内网穿透-vue-cli

项目配置

找到***vue.config.js***文件 在devServer中 添加 disableHostCheck: true,

 devServer: { 
    disableHostCheck: true, }

去掉懒加载 // mode: “history”

const createRouter = () =>
  new Router({
    // mode: "history", // Disabled due to Github Pages doesn't support this, enable this if you need.
    scrollBehavior: (to, from, savedPosition) => {
      if (savedPosition) {
        return savedPosition;
      } else {
        return { x: 0, y: 0 };
      }
    },
    base: process.env.BASE_URL,
    routes: constantRoutes
  });
上一篇:人类历史的进程中,许多错误理论有时会流行长达数十年之久。


下一篇:springboot启动日志:Multiple Spring Data modules found, entering strict repository configuration mode