Browse Source

app版本管理

Shannon_mu 3 years ago
parent
commit
0e716db207

+ 4 - 0
userCenter/src/utils/http.js

@@ -27,7 +27,11 @@ http.interceptors.request.use(
         }
         else if (config.url.indexOf('/sc-user-center') !== -1) {
             config.url = config.url;
+        } else if (config.url.indexOf('/sc-community') !== -1) {
+            config.url = config.url;
         }
+
+
         else {
             config.url = `/sc-user-center${config.url}`;
         }

+ 1 - 1
userCenter/src/views/sysManage/appVersionManage/popups/addAppVersionManage.vue

@@ -27,7 +27,7 @@
       <el-input class="uploadinput" slot="tip" v-model="isUpload" :placeholder="isUpload?'':isUploadText"></el-input>
       <el-upload
         name="avatarfile"
-        action="/sc-operation-manager/order/workOrderManage/addAppPackage"
+        action="/sc-community/systemConfig/addAppPackage"
         :show-file-list="true"	
         :limit="1"
         accept=".apk"

+ 9 - 0
userCenter/vue.config.js

@@ -101,6 +101,15 @@ module.exports = {
                     /* "^/api": "" */
                 }
             },
+            '/sc-community': {
+                target: envConfig.baseApi,
+                ws: true, // 代理的WebSockets
+                changeOrigin: true, // 允许websockets跨域
+                logLevel: 'debug',
+                pathRewrite: {
+                    // "^/sc-community": ""
+                }
+            },
             '/sc-operation-manager': {
                 target: envConfig.baseApi,
                 ws: true, // 代理的WebSockets