File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -162,12 +162,16 @@ export default {
162
162
};
163
163
},
164
164
watch: {
165
- src (n ) {
166
- if (! n) {
167
- // 如果传入null或者'',或者false,或者undefined,标记为错误状态
168
- this .isError = true ;
169
- } else {
170
- this .isError = false ;
165
+ src: {
166
+ immediate: true ,
167
+ handler (n ) {
168
+ if (! n) {
169
+ // 如果传入null或者'',或者false,或者undefined,标记为错误状态
170
+ this .isError = true ;
171
+ this .loading = false ;
172
+ } else {
173
+ this .isError = false ;
174
+ }
171
175
}
172
176
}
173
177
},
Original file line number Diff line number Diff line change 2
2
<view class =" " >
3
3
<view class =" u-content" :class =" [elId]" :style =" {
4
4
height: isLongContent && !showMore ? showHeight + 'rpx' : 'auto',
5
- textIndent: this. textIndent
5
+ textIndent: textIndent
6
6
}" >
7
7
<slot ></slot >
8
8
</view >
You can’t perform that action at this time.
0 commit comments