fix: 修复插件管理新增id校验失败

This commit is contained in:
xieyonghong 2023-04-27 14:54:27 +08:00
parent a2bebe1f36
commit f6659da1b8
2 changed files with 2 additions and 1 deletions

View File

@ -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('/');

View File

@ -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重复');
}
}