diff --git a/index.html b/index.html
index a7f9882..c226fd1 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,7 @@
-
TDesign Pro
+ TDesign Pro Vue3
diff --git a/src/config/proxy.ts b/src/config/proxy.ts
index 42284bb..4394c4f 100644
--- a/src/config/proxy.ts
+++ b/src/config/proxy.ts
@@ -1,4 +1,10 @@
export default {
+ production: {
+ // 开发环境接口请求
+ host: 'https://service-exndqyuk-1257786608.gz.apigw.tencentcs.com',
+ // 开发环境 cdn 路径
+ cdn: '',
+ },
development: {
// 开发环境接口请求
host: 'https://service-exndqyuk-1257786608.gz.apigw.tencentcs.com',
diff --git a/src/router/index.ts b/src/router/index.ts
index 52784ba..d776623 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,4 +1,4 @@
-import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
+import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
import routeConfig from '@/config/routes';
const layoutModules = import.meta.glob('../Layouts/*');
@@ -31,7 +31,7 @@ const routes: Array = [
];
const router = createRouter({
- history: createWebHistory(''),
+ history: createWebHashHistory(),
routes,
scrollBehavior() {
return {
diff --git a/tsconfig.json b/tsconfig.json
index c7b6225..03910f9 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -15,5 +15,5 @@
"@/*": ["./src/*"]
}
},
- "include": ["**/*.ts", "src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "src/config/proxy.ts", "src/pages/detail/base/index.js"]
+ "include": ["**/*.ts", "src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}
diff --git a/vite.config.ts b/vite.config.ts
index 0381e47..00c4775 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -10,7 +10,6 @@ const path = require('path');
// https://vitejs.dev/config/
export default defineConfig({
- base: './',
resolve: {
alias: {
'~': path.resolve(__dirname, './'),