@@ -1,3 +1,4 @@
+.idea
node_modules
.DS_Store
dist
@@ -1,4 +1,4 @@
-import { createRouter, createWebHistory } from 'vue-router'
+import {createRouter, createWebHashHistory, createWebHistory} from 'vue-router'
export const constantRoutes = [
{
@@ -567,7 +567,7 @@ export const constantRoutes = [
]
const router = createRouter({
- history: createWebHistory(),
+ history: createWebHashHistory('/wxservice/'),
routes: constantRoutes,
})
@@ -11,6 +11,7 @@ const alias = {
}
export default defineConfig({
+ base: '/wxservice/',
resolve: {
alias,
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']