供应商路由调整
This commit is contained in:
@@ -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() })
|
||||
}
|
||||
|
||||
/* ============ 初始化 ============ */
|
||||
|
||||
Reference in New Issue
Block a user