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() { created() {
this.$httpApi // this.$httpApi
.loginAdminTest({ loginname: 'admin', pwd: '123456' }) // .loginAdminTest({ loginname: 'admin', pwd: '123456' })
.then((res) => { // .then((res) => {
console.log(res) // console.log(res)
}) // })
}, },
mounted() {}, mounted() {},
methods: { methods: {

View File

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

View File

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