From 0155711c271cc1c1c72457ad84f375cf7c531994 Mon Sep 17 00:00:00 2001 From: wangzhengkun Date: Fri, 12 Aug 2022 15:05:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9props=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/en.ts | 1 + frontend/src/lang/modules/zh.ts | 1 + frontend/src/views/demos/table/index.vue | 1 - frontend/src/views/demos/table/operate/index.vue | 4 ++-- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index fabcf5c10..41a38d99c 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -85,6 +85,7 @@ export default { post: ' create', update: ' update', delete: ' delete', + del: 'delete', }, operatoin: 'operatoin', status: 'status', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index e70ad44df..6dac0dc72 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -86,6 +86,7 @@ export default { delete: '删除', login: '登录', logout: '退出', + del: '删除', }, operatoin: '操作', status: '状态', diff --git a/frontend/src/views/demos/table/index.vue b/frontend/src/views/demos/table/index.vue index 2876dc303..7a07787dd 100644 --- a/frontend/src/views/demos/table/index.vue +++ b/frontend/src/views/demos/table/index.vue @@ -72,7 +72,6 @@ const batchDelete = async (row: User.User | null) => { } else { ids.push(row.id); } - console.log(ids); await useDeleteData(deleteUser, { ids: ids }, 'commons.msg.delete'); search(); }; diff --git a/frontend/src/views/demos/table/operate/index.vue b/frontend/src/views/demos/table/operate/index.vue index c80700bde..056fa9881 100644 --- a/frontend/src/views/demos/table/operate/index.vue +++ b/frontend/src/views/demos/table/operate/index.vue @@ -41,7 +41,7 @@ let demoForm = ref({ interface OperateProps { op: string; - id: number; + id: string; } const props = withDefaults(defineProps(), { @@ -81,7 +81,7 @@ const getUser = async (id: number) => { onMounted(() => { if (props.op == 'edit') { console.log(props); - getUser(props.id).catch(() => { + getUser(Number(props.id)).catch(() => { router.back(); }); }