mirror of
https://gitee.com/was666/as-editor.git
synced 2024-10-06 04:22:07 +08:00
feat: 更换上传图片地址
This commit is contained in:
parent
b40e6cf172
commit
c5b2c61655
10
src/App.vue
10
src/App.vue
@ -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: {
|
||||||
|
@ -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)
|
||||||
},
|
},
|
||||||
|
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user