优化模板

This commit is contained in:
Leo_Ding 2025-07-24 17:13:59 +08:00
parent 4dc87e3a03
commit d277a247a5
4 changed files with 2 additions and 3 deletions

View File

@ -12,7 +12,7 @@ VITE_ROUTER_BASE=/
VITE_ROUTER_HISTORY=hash VITE_ROUTER_HISTORY=hash
# api # api
VITE_API_BASIC=http://10.10.1.6:8071 VITE_API_BASIC=
VITE_API_HTTP=/api/v1/ VITE_API_HTTP=/api/v1/
# storage # storage
VITE_STORAGE_NAMESPACE = gin-admin_local_ VITE_STORAGE_NAMESPACE = gin-admin_local_

View File

@ -80,6 +80,7 @@ watch(
]), ]),
icon: (item) => { icon: (item) => {
const iconName = item?.meta?.icon; const iconName = item?.meta?.icon;
if(!iconName) return
// Iconfont ('icon-') // Iconfont ('icon-')
if (typeof (iconName)==='string') { if (typeof (iconName)==='string') {
const iconfontName = iconName; const iconfontName = iconName;

View File

@ -211,7 +211,6 @@ function handleDelete({ id }) {
* 编辑完成 * 编辑完成
*/ */
async function onOk() { async function onOk() {
message.success(t('component.message.success.delete'))
await getMenuList() await getMenuList()
} }
</script> </script>

View File

@ -226,7 +226,6 @@ function handleResetSearch() {
* 编辑完成 * 编辑完成
*/ */
async function onOk() { async function onOk() {
message.success(t('component.message.success.delete'))
await getPageList() await getPageList()
} }
</script> </script>