Browse Source

2024-2-29

cmy 1 year ago
parent
commit
b590281441
4 changed files with 17 additions and 5 deletions
  1. 1 1
      .env.dev
  2. 0 2
      .gitignore
  3. 0 1
      src/pages/capital/setting/index.vue
  4. 16 1
      vue.config.js

+ 1 - 1
.env.dev

@@ -8,4 +8,4 @@ VUE_APP_WS_KEFU_URL=''
 # socket 系统连接地址
 # socket 系统连接地址
 VUE_APP_WS_ADMIN_URL=''
 VUE_APP_WS_ADMIN_URL=''
 # 接口请求地址
 # 接口请求地址
-VUE_APP_API_URL='https://test.pro.wuht.net/supplierapi'
+VUE_APP_API_URL=''

+ 0 - 2
.gitignore

@@ -14,5 +14,3 @@ yarn-error.log*
 *.njsproj
 *.njsproj
 *.sln
 *.sln
 *.sw*
 *.sw*
-.env
-

+ 0 - 1
src/pages/capital/setting/index.vue

@@ -35,7 +35,6 @@
             type="text"
             type="text"
             placeholder="不超过19字"
             placeholder="不超过19字"
             class="input"
             class="input"
-            number
           ></Input>
           ></Input>
         </FormItem>
         </FormItem>
         <FormItem label="支付宝账号:">
         <FormItem label="支付宝账号:">

+ 16 - 1
vue.config.js

@@ -16,7 +16,22 @@ module.exports = {
     runtimeCompiler: true,
     runtimeCompiler: true,
     productionSourceMap: false,
     productionSourceMap: false,
     devServer: {
     devServer: {
-        publicPath: Setting.publicPath
+        publicPath: Setting.publicPath,
+		port: 1618, //端口号
+		proxy: {
+		  // "/adminapi": {
+		  '/supplierapi': {
+		    // "target" : "https://www.psgjsc.com" ,//目标接口域名
+		    target: 'https://www.senyinkj.cn', //目标接口域名
+		    ws: true,
+		    changeOrigin: true,
+		    // "changeOrigin" : true, //是否跨域
+		    // "secure" : true ,// 设置支持https协议的代理
+		    // "pathRewrite" : {
+		    //     "/adminapi" : "" // rewrite path
+		    // }
+		  },
+		},
     },
     },
     css: {
     css: {
         loaderOptions: {
         loaderOptions: {