供应商路由调整

This commit is contained in:
liuminghui
2026-11-02 10:41:20 +08:00
parent 1ba5822a86
commit 1b1b934d87
3 changed files with 27 additions and 2 deletions
@@ -622,6 +622,7 @@ import { getToken } from '@/utils/auth'
import axios from 'axios'
import { saveAs } from 'file-saver'
import { useChannels, parseChannelCodes } from '@/components/ChannelSelect/useChannels'
import { supplierListPath } from '@/router'
const { proxy } = getCurrentInstance()
const route = useRoute()
@@ -1063,7 +1064,8 @@ function submitForm() {
}
function goBack() {
router.push({ path: '/customersuppliermanagement/supplierinfo' })
// 关闭编辑页并回到已注册的供应商列表。菜单目录 path 是 1 时列表为 /1/supplierinfo,不能回到客户管理那条不存在的地址。
proxy.$tab.closeOpenPage({ path: supplierListPath() })
}
/* ============ 初始化 ============ */