瀏覽代碼

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

DESKTOP-SVI9JE1\muzen 2 年之前
父節點
當前提交
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
       }
     },