yuantianjiao 6 years ago
parent
commit
8261c50544
2 changed files with 3 additions and 5 deletions
  1. 2
    2
      config/index.js
  2. 1
    3
      src/pages/system/cmsManager/bannerManager/add.vue

+ 2
- 2
config/index.js View File

12
     proxyTable: {
12
     proxyTable: {
13
       '/api': {
13
       '/api': {
14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
14
         // target: 'https://dp.huiju360.com.cn/hj_operations',
15
-        // target: 'http://192.168.0.62:8080', //wf
16
-        target: 'http://192.168.0.11:8088', //zys
15
+        target: 'http://192.168.0.62:8080', //wf
16
+        // target: 'http://192.168.0.11:8088', //zys
17
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
17
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
18
         // pathRewrite: {
18
         // pathRewrite: {
19
         //   '^/api': 'api'
19
         //   '^/api': 'api'

+ 1
- 3
src/pages/system/cmsManager/bannerManager/add.vue View File

122
         method: this.$api.cms.addImage.method,
122
         method: this.$api.cms.addImage.method,
123
         data: this.postData
123
         data: this.postData
124
       }).then(res => {
124
       }).then(res => {
125
-        console.log(res)
125
+        this.$router.push({ name: 'bannerManager' })
126
       }).catch(msg => {
126
       }).catch(msg => {
127
 
127
 
128
       })
128
       })
131
       this.$router.go(-1)
131
       this.$router.go(-1)
132
     },
132
     },
133
     handleAvatarSuccess (res, file) {
133
     handleAvatarSuccess (res, file) {
134
-      console.log(res)
135
-      console.log(file)
136
       this.postData.ImageUrl = res.result.url
134
       this.postData.ImageUrl = res.result.url
137
     },
135
     },
138
     beforeAvatarUpload (file) { },
136
     beforeAvatarUpload (file) { },