vue 数据更新视图不更新
解决方法使用this.
s
e
t
(
t
a
r
g
e
t
,
p
r
o
p
e
r
t
y
N
a
m
e
/
i
n
d
e
x
,
v
a
l
u
e
)
t
a
r
g
e
t
=
》
a
r
r
a
y
,
o
b
j
e
c
t
t
h
i
s
.
set(target,propertyName/index,value) target=》array,object this.
set(target,propertyName/index,value)target=》array,objectthis.set(this.data,‘citys’,‘xx’)
12-09
183
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-26
1722
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-07
2万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-27
8295
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)