feat: 登录类型增加

This commit is contained in:
GaoHao
2025-04-12 11:01:38 +08:00
parent ce3b817e42
commit 05aaa2fd64
7 changed files with 28 additions and 19 deletions

View File

@@ -115,7 +115,7 @@ const oldeditSubmitFunc = editModalConfig.formAction;
// 数据初始化
async function init() {
// 覆写添加确定方法
if (JSON.parse(localStorage.getItem('userInfo') || '{}').isHeadShop == 0) {
if (JSON.parse(localStorage.getItem('userInfo') || '{}').isHeadShop == 0 && localStorage.getItem('loginType') == '0') {
searchConfig.formItems.splice(0, 1)
}
addModalConfig.formAction = function (data) {