mirror of
https://gitee.com/was666/as-editor.git
synced 2025-04-02 20:32:43 +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() {
|
||||
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: {
|
||||
|
@ -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)
|
||||
},
|
||||
|
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user