watch 和 computed 同级, 却将watch 方法写在了 computed内,导致vue警告。 computed: { watch: .... } 将watch取出,和computed同级即可。