Browse Source

楼栋列表请求

wyx
mk 3 months ago
parent
commit
246e633822
  1. 2
      build/index.js
  2. 2
      src/api/mz/building.js

2
build/index.js

@ -18,7 +18,7 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
app.use(
publicPath,
serveStatic('./epmet-apartment-ui', {
serveStatic('./epmet-apartment-pc', {
index: ['index.html', '/']
})
)

2
src/api/mz/building.js

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

Loading…
Cancel
Save