Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
XieYongHong 2023-07-16 00:02:04 +08:00
commit 2ba9542748
4 changed files with 5 additions and 2 deletions

View File

@ -184,6 +184,7 @@ let _metadata = ref();
const loading = ref<boolean>(false);
const channelList = ref([]);
const modelRef = reactive({
dataSource: [],
});

View File

@ -146,7 +146,7 @@ const selectChange = (e: any) => {
visible.value = true;
}
const item = productList.value.filter((i: any) => i.id === e)[0];
const array = JSON.parse(item.metadata || '{}')?.properties?.map(
const array = JSON.parse(item?.metadata || '{}')?.properties?.map(
(i: any) => ({
metadataType: 'property',
metadataName: `${i.name}(${i.id})`,

View File

@ -137,6 +137,7 @@ const routerParams = useRouterParams();
const instanceStore = useInstanceStore();
const statusMap = new Map();
statusMap.set('online', 'success');
statusMap.set('offline', 'error');
statusMap.set('notActive', 'warning');
@ -276,7 +277,7 @@ const initPage = async (newId: any) => {
}
onBeforeRouteUpdate((to: any) => {
if (to.params?.id) {
if (to.params?.id!==instanceStore.current.id) {
initPage(to.params?.id)
}
})

View File

@ -6,6 +6,7 @@
okText="确定"
cancelText="取消"
:confirmLoading='loading'
:maskClosable="false"
@ok="submitData"
@cancel="cancel"
>