Browse Source

图片跨域问题解决

master
陈裕财 3 years ago
parent
commit
ed75387b79
  1. 4
      config/index.js
  2. 4
      src/components/Tinymce/index.vue

4
config/index.js

@ -18,7 +18,7 @@ module.exports = {
'^/api/m1/xm': '/xm'
}
},
/**
'/api/m1/arc': {
target: 'http://localhost:7012',
changeOrigin: true,
@ -26,7 +26,7 @@ module.exports = {
'^/api/m1/arc': '/arc'
}
},
/**
'/api/m1/sys': {
target: 'http://localhost:7015',
changeOrigin: true,

4
src/components/Tinymce/index.vue

@ -202,7 +202,9 @@ export default {
upload(formData).then((res) => {
var tips = res.data.tips;
if(tips.isOk){
success('http://localhost:8067/api/m1/arc/arc/image/uploadImm/IM1675705794917148.png')
success(res.data.data.url)
//success('http://localhost:8067/api/m1/arc/arc/image/uploadImm/IM1675705794917148.png')
}else{
failure(tips.msg)
}

Loading…
Cancel
Save