feat: 更换上传图片地址

This commit is contained in:
王奥斯 2021-11-25 16:45:47 +08:00
parent b40e6cf172
commit c5b2c61655
3 changed files with 7 additions and 7 deletions

View File

@ -20,11 +20,11 @@ export default {
}
},
created() {
this.$httpApi
.loginAdminTest({ loginname: 'admin', pwd: '123456' })
.then((res) => {
console.log(res)
})
// this.$httpApi
// .loginAdminTest({ loginname: 'admin', pwd: '123456' })
// .then((res) => {
// console.log(res)
// })
},
mounted() {},
methods: {

View File

@ -111,7 +111,7 @@ export default {
//
var res = JSON.parse(xhr.response)
if (res.success != true) return failFun('HTTP Error: ' + res.msg)
succFun(res.result)
succFun(res.data.src)
}
xhr.send(formData)
},

View File

@ -12,7 +12,7 @@ module.exports = {
open: true,
proxy: {
'/api': {
target: 'https://player.okgene.work/',
target: 'http://api.aseditor.fun/',
ws: true,
changeOrigin: true,
pathRewrite: {