使用严格相等运算符

This commit is contained in:
2021-07-05 23:15:24 +08:00
parent 7b76fc0c48
commit d8f48d4ce0
6 changed files with 22 additions and 22 deletions

View File

@@ -42,10 +42,10 @@ export default {
return style;
}
if (this.from == 'inner') {
if (this.from === 'inner') {
// 内部
iconPath = require(`@/assets/icon/${this.path}`);
} else if (this.from == 'outer') {
} else if (this.from === 'outer') {
// 外部
iconPath = this.path;
}