zhanhan 1 anno fa
parent
commit
01764edfc8
3 ha cambiato i file con 12 aggiunte e 7 eliminazioni
  1. 6 1
      README.md
  2. 5 5
      public/config.js
  3. 1 1
      src/util/request.js

+ 6 - 1
README.md

@@ -33,4 +33,9 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
     "url":"http://192.168.1.37:9002/map_tiles/sh_qp._yxt_20230921-zong/sh_tiles",
     "type":"xyz"
 }
-```
+```
+
+### 20231102
+- 禁用cookie
+- 删除内置账号密码
+

+ 5 - 5
public/config.js

@@ -8,9 +8,9 @@ var systemConfig = {
 }
 
 // SkyScenery插件配置
-var SkySceneryConfig = {
-    userName: "user001",
-    password: "1234567890",
-    authUrl: '',// 留空
-}
+// var SkySceneryConfig = {
+//     userName: "user001",
+//     password: "1234567890",
+//     authUrl: '',// 留空
+// }
 

+ 1 - 1
src/util/request.js

@@ -7,7 +7,7 @@ import store from '@/store/index'
 // 服务接口地址
 // axios.defaults.baseURL = systemConfig.baseUrl
 // 携带 cookie
-axios.defaults.withCredentials = true
+axios.defaults.withCredentials = false
 
 // 默认 post 请求,使用 multipart/form-data 形式
 axios.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded";