Commit 031c0b0b authored by 崔佳豪's avatar 崔佳豪

fix: 添加服务前缀

parent 9a81636f
...@@ -5,7 +5,7 @@ const REQUEST_METHOD_POST = 'post'; ...@@ -5,7 +5,7 @@ const REQUEST_METHOD_POST = 'post';
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
const baseUrl = typeof DUMI_TYPE !== 'undefined' && DUMI_TYPE === 'dumi' ? '/api' : ''; const baseUrl = typeof DUMI_TYPE !== 'undefined' && DUMI_TYPE === 'dumi' ? '/api' : '';
const MonitorUrl = `/PandaMonitor/Monitor`; const MonitorUrl = `${baseUrl}/PandaMonitor/Monitor`;
// 查询设备指标 // 查询设备指标
export function getQuataList(params) { export function getQuataList(params) {
......
...@@ -91,7 +91,6 @@ const QuotaSelect = ({ ...@@ -91,7 +91,6 @@ const QuotaSelect = ({
const curSelectList = JSON.parse(JSON.stringify(selectData)); const curSelectList = JSON.parse(JSON.stringify(selectData));
const curSelectKey = curSelectList.map((child) => child.key); const curSelectKey = curSelectList.map((child) => child.key);
params[pointType] = curSelectKey.join(','); params[pointType] = curSelectKey.join(',');
console.log(params);
updateMonitorConf(params).then((response) => { updateMonitorConf(params).then((response) => {
if (response.code === 0) { if (response.code === 0) {
message.success('保存成功'); message.success('保存成功');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment