上传预览版

This commit is contained in:
zouzhibing 2022-03-24 12:26:52 +08:00
parent 5f6baf75da
commit 414823ec2f
2 changed files with 4 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,6 +1,6 @@
.DS_Store
node_modules
/dist
/docs
# local env files

View File

@ -1,4 +1,4 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import { createRouter, createWebHistory, RouteRecordRaw,createWebHashHistory } from 'vue-router'
import Layout from "@/layout/index.vue";
@ -38,7 +38,8 @@ export const asyncRoutes = [
]
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
// history: createWebHistory(process.env.BASE_URL), // history
history: createWebHashHistory(), // hash
routes:constantRoutes
})