5e4ce3cc by lihua

修复新增编辑删除表未刷新树形

1 parent cf7f3bbe
......@@ -452,7 +452,7 @@ const tableInfo = ref({
{ label: "字段类型", field: "fieldTypeName", width: 120 },
{
label: "分类", field: "classifyDetailNameRoutes", width: 120, getName: (scope) => {
return scope.row.classifyDetailNameRoutes.join('/');
return !scope.row.classifyDetailNameRoutes?.length ? '--' : scope.row.classifyDetailNameRoutes?.join('/');
}
},
{ label: "分级", field: "gradeDetailName", width: 80 },
......@@ -749,6 +749,7 @@ const dataBaseTableInfo = ref({
if (res.code == proxy.$passCode) {
proxy.$ElMessage.success('删除成功');
dataBaseTableInfo.value.loading = true;
getDataBaseTreeData();
await getDataBaseTableData({
pageIndex: dataBasePage.value.curr,
pageSize: dataBasePage.value.limit
......@@ -1906,7 +1907,7 @@ const selectChange = (val, row, info) => {
// 这里应该是onActivated 钩子,路由从configure-路由从configure-rules跳转过来要重新请求数据、
onActivated(async () => {
if (localStorage.getItem('shouldReloadData') === 'true') {
if (activeName.value == '数据库目录') {
if (activeName.value == 'second') {
getDataBaseTreeData();
}
await getDataBaseTableData({
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!