Yansen 1 year ago
parent
commit
7cab49d064
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      config/index.js
  2. 2
    2
      config/prod.js

+ 2
- 2
config/index.js View File

@@ -66,8 +66,8 @@ export default defineConfig(async (merge, { command, mode }) => {
66 66
       // outputDir: "dist",
67 67
       // uglify:false,
68 68
       router: {
69
-        mode: "browser",
70
-        basename:"/h5"
69
+        mode: "hash",
70
+        basename:""
71 71
       },
72 72
       esnextModules: ["@antmjs"],
73 73
       postcss: {

+ 2
- 2
config/prod.js View File

@@ -5,8 +5,8 @@ module.exports = {
5 5
   defineConstants: {
6 6
     // HOST: '"http://192.168.89.147:9087"',
7 7
     // HOST: '"https://wmcj.ycjcjy.com"',
8
-    HOST: '""',
9
-    MAPHOST: '"/api2"',
8
+    HOST: '"http://api.wmcj.ycjcjy.com"',
9
+    MAPHOST: '"http://api.wmcj.ycjcjy.com/api2"',
10 10
     AD_IMAGE: '"https://h5.njyunzhi.com/images/citizen_banner.png"',
11 11
     DEFAULT_POS: '"116.34761502876347,31.40974743425614"', // 霍山县人民政府 gcj02
12 12
     VERSION: '"1.1.29-20240224"',