Browse Source

富文本框上传文件地址修改 漏洞列表接口修改

wyx
mk 3 months ago
parent
commit
72e2b8b5f6
  1. 2
      src/api/mz/building.js
  2. 2
      src/components/Editor/index.vue

2
src/api/mz/building.js

@ -8,7 +8,7 @@ export function listBuilding(query) {
.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`) .map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
.join('&'); .join('&');
return fetch(`${process.env.VUE_APP_BASE_API}/mz/building/list?${queryString}`, { return fetch(`/mz/building/list?${queryString}`, {
headers: { headers: {
'Authorization': 'Bearer ' + getToken(), 'Authorization': 'Bearer ' + getToken(),
'Content-Type': 'application/json;charset=utf-8' 'Content-Type': 'application/json;charset=utf-8'

2
src/components/Editor/index.vue

@ -60,7 +60,7 @@ export default {
}, },
data() { data() {
return { return {
uploadUrl: process.env.VUE_APP_BASE_API + "/common/upload", // uploadUrl: "/common/upload", //
headers: { headers: {
Authorization: "Bearer " + getToken() Authorization: "Bearer " + getToken()
}, },

Loading…
Cancel
Save