软硬件定制
@@ -34,13 +34,7 @@ const router = useRouter()
const route = useRoute()
const toPage = (path, p) => {
- if (p) {
- window.location.href = window.location.origin + '?p=' + p
- } else {
- router.push({
- path,
- })
- }
+ window.location.href = `http://iflytop.com${path}`
}
diff --git a/src/router/index.js b/src/router/index.js
index 4054050..6f5dc6f 100755
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,4 +1,4 @@
-import { createRouter, createWebHistory } from 'vue-router'
+import { createRouter, createWebHashHistory } from 'vue-router'
// 配置路由信息
const routes = [
@@ -51,7 +51,7 @@ const routes = [
const router = createRouter({
routes,
- history: createWebHistory(),
+ history: createWebHashHistory(),
})
export default router
diff --git a/vite.config.js b/vite.config.js
index 8aeae62..99e3f5c 100755
--- a/vite.config.js
+++ b/vite.config.js
@@ -21,6 +21,7 @@ export default defineConfig({
},
extensions: ['.js', '.json', '.vue'],
},
+ base: '/pc-design/',
assetsInclude: ['**/*.mp4'],
server: {
host: '0.0.0.0',