Skip to content

Commit 34cd54c

Browse files
committed
build: Travis CI automatic compilation
1 parent 3fe8171 commit 34cd54c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

dist/status-show/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dist/status-show/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ Component({
8383
},
8484

8585
_changeStatus() {
86-
switch (this.properties.type) {
86+
const type = this.data.type;
87+
if(!type){
88+
return;
89+
}
90+
switch (type) {
8791
case 'success':
8892
this.setData({
8993
typeImage: 'image/success.png',
@@ -134,7 +138,7 @@ Component({
134138
break;
135139
default:
136140
console.warn(
137-
`${this.data.type} is not a valid value`
141+
`${type} is not a valid value`
138142
);
139143
}
140144
},

0 commit comments

Comments
 (0)