fix: 修复没有仪表板创建权限,在工作台可以点击使用模板新建跳转到创建页面问题

This commit is contained in:
wangjiahao 2024-01-19 17:38:30 +08:00
parent ec4d3006f7
commit 9275c7e352

View File

@ -238,11 +238,13 @@ const toTemplateMarket = () => {
}
const toTemplateMarketAdd = () => {
const params = {
curPosition: 'branchCreate',
templateType: 'all'
if (havePanelAuth.value || haveScreenAuth.value) {
const params = {
curPosition: 'branchCreate',
templateType: 'all'
}
resourceCreateOpt.value.optInit(params)
}
resourceCreateOpt.value.optInit(params)
}
fillCardInfo()