fix(build): fix environment variable configuration file failure

This commit is contained in:
vben
2020-12-22 22:13:03 +08:00
parent e6db0d39b9
commit bd7b53f14a
19 changed files with 158 additions and 245 deletions

View File

@@ -38,7 +38,7 @@ setupErrorHandle(app);
// Mount when the route is ready
router.isReady().then(() => {
app.mount('#app');
app.mount('#app', true);
});
// The development environment takes effect

View File

@@ -9,11 +9,9 @@ import { basicRoutes } from './routes/';
import { scrollBehavior } from './scrollBehavior';
import { REDIRECT_NAME } from './constant';
export const hashRouter = createWebHashHistory();
// app router
const router = createRouter({
history: hashRouter,
history: createWebHashHistory(),
routes: basicRoutes as RouteRecordRaw[],
strict: true,
scrollBehavior: scrollBehavior,