fix: 修复插件管理新增id校验失败
This commit is contained in:
parent
a2bebe1f36
commit
f6659da1b8
|
@ -41,6 +41,7 @@ const handle = async (appId: string, url: string) => {
|
|||
|
||||
watchEffect(() => {
|
||||
const matchedItem: any = route.matched?.[0]
|
||||
console.log('iframe', matchedItem?.meta?.isApp)
|
||||
if (matchedItem?.meta?.isApp) {
|
||||
const params = route.path.split('/')?.[1];
|
||||
const url = route.path.split('/').slice(2).join('/');
|
||||
|
|
|
@ -94,7 +94,7 @@ const loading = ref(false)
|
|||
const vailId = async (_: any, value: string) => {
|
||||
if (!props.data.id && value) { // 新增校验
|
||||
const resp = await vailIdFn(value)
|
||||
if (resp.success && resp.result) {
|
||||
if (resp.success && resp.result && !resp.result.passed) {
|
||||
return Promise.reject('ID重复');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue