wuguojie 1 рік тому
батько
коміт
596d92a7f6
3 змінених файлів з 10 додано та 8 видалено
  1. 6 6
      .editorconfig
  2. 3 1
      .env.development
  3. 1 1
      vite.config.ts

+ 6 - 6
.editorconfig

@@ -1,9 +1,9 @@
 root = true
 
 [*]
-charset = utf-8
-indent_style = space
-indent_size = 2
-end_of_line = lf
-insert_final_newline = true
-trim_trailing_whitespace = true
+charset = utf-8 # 字符编码 utf-8
+indent_style = space # 输入的 tab 都用空格代替
+indent_size = 2 # 一个 tab 用 2 个空格代替
+end_of_line = lf # 换行符使用 unix 的换行符 \n
+insert_final_newline = true # 去掉每行末尾的空格
+trim_trailing_whitespace = true # 文件末尾都加一个空行

+ 3 - 1
.env.development

@@ -4,7 +4,9 @@ VITE_APP_SETTING = true
 VITE_APP_TITLE = 掌柜运营平台
 # 接口请求地址,会设置到 axios 的 baseURL 参数上
 # VITE_APP_API_BASEURL = https://test.baoxianzhanggui.com/web-api #默认地址
-VITE_APP_API_BASEURL = http://192.168.5.148:8001  #田智
+#VITE_APP_API_BASEURL = http://192.168.0.53:8001  #田智
+VITE_APP_API_BASEURL = http://192.168.0.106:8001  #屈晨
+#VITE_APP_API_BASEURL = http://192.168.0.59:8001  #徐强
 
 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空
 VITE_APP_DEBUG_TOOL =

+ 1 - 1
vite.config.ts

@@ -21,7 +21,7 @@ export default defineConfig(({ mode, command }) => {
     server: {
       open: true,
       host: '0.0.0.0', // 监听所有接口
-      port: 9001,
+      port: 9000,
       proxy: {
         '/proxy': {
           target: env.VITE_APP_API_BASEURL,