Просмотр исходного кода

修复mixin中第三方资源平台不可编辑的判断bug

DESKTOP-SVI9JE1\muzen 2 лет назад
Родитель
Сommit
82b4e7949d
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/mixin/index.js

+ 3 - 2
src/mixin/index.js

@@ -292,8 +292,9 @@ const platformMixin = {
 
     // 第三方资源平台不可编辑
     disabledPlatformId(e) {
-      if (e) {
-        return this.platformOptions.find(i => i.value === e).joinType.includes('1')
+      let value = this.platformOptions.find(i => i.value == e)
+      if (value) {
+        return value.joinType.includes('1') ? true : false
       }
     },