🐛 更新权限表单逻辑并修复索引列标签

This commit is contained in:
bunny 2025-05-26 09:22:25 +08:00
parent 213a66971d
commit 3dbff6aa39
2 changed files with 2 additions and 4 deletions

View File

@ -8,7 +8,7 @@ export const columns: TableColumnList = [
{ {
type: 'index', type: 'index',
index: (index: number) => index + 1, index: (index: number) => index + 1,
label: $t("index"), label: $t('index'),
width: 60, width: 60,
}, },
// 模板名称 // 模板名称

View File

@ -51,9 +51,7 @@ const onNodeClick = (node) => {
form.value.powerName = node.summary; form.value.powerName = node.summary;
form.value.requestMethod = node.httpMethod; form.value.requestMethod = node.httpMethod;
form.value.requestUrl = node.path; form.value.requestUrl = node.path;
if (node.powerCodes && node.powerCodes.length > 0) { form.value.powerCode = node.powerCode;
form.value.powerCode = node.powerCodes[0];
}
}; };
onMounted(() => { onMounted(() => {