使用字典值替换所有枚举对象.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="layout-container">
|
||||
<div class="layout-container" v-if="render">
|
||||
<!-- 列表-表格 -->
|
||||
<host-key-table v-if="renderTable"
|
||||
ref="table"
|
||||
@@ -30,9 +30,10 @@
|
||||
import HostKeyTable from './components/host-key-table.vue';
|
||||
import HostKeyFormDrawer from './components/host-key-form-drawer.vue';
|
||||
|
||||
import { computed, ref } from 'vue';
|
||||
import { computed, ref, onBeforeMount } from 'vue';
|
||||
import { useAppStore } from '@/store';
|
||||
|
||||
const render = ref(false);
|
||||
const table = ref();
|
||||
const card = ref();
|
||||
const drawer = ref();
|
||||
@@ -58,6 +59,10 @@
|
||||
}
|
||||
};
|
||||
|
||||
onBeforeMount(async () => {
|
||||
render.value = true;
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
||||
Reference in New Issue
Block a user