guhongwei 4 years ago
parent
commit
04cd97421f
2 changed files with 5 additions and 2 deletions
  1. 3 0
      src/views/pcenter/parts/infoFrom.vue
  2. 2 2
      vue.config.js

+ 3 - 0
src/views/pcenter/parts/infoFrom.vue

@@ -178,6 +178,9 @@ export default {
       this.$set(this.editor, `skin_url`, skin_url);
       this.$set(this.editor, `lang_url`, lang_url);
     },
+    uploadSuccess({ type, data }) {
+      this.$set(this.newform, `${type}`, data.uri);
+    },
   },
 };
 </script>

+ 2 - 2
vue.config.js

@@ -24,10 +24,10 @@ module.exports = {
         ws: true,
       },
       '/files': {
-        target: 'http://broadcast.waityou24.cn/',
+        target: 'http://broadcast.waityou24.cn',
       },
       '/api': {
-        target: 'http://127.0.0.1:3001',
+        target: 'http://broadcast.waityou24.cn',
         changeOrigin: true,
         ws: true,
       },