Php 拉威尔和vue传球阵型到道具

Php 拉威尔和vue传球阵型到道具,php,laravel,Php,Laravel,我有一个多选组件,看起来像这样: <multi-select prp-selected="<?php old('organisations_working_at') ?>" prp-name="organisations_working_at" :prp-options="{{ json_encode($organisations) }}" prp-placeholder="Kies orga

我有一个多选组件,看起来像这样:

 <multi-select prp-selected="<?php old('organisations_working_at') ?>"
              prp-name="organisations_working_at"
              :prp-options="{{ json_encode($organisations) }}"
              prp-placeholder="Kies organisatie(s)">
</multi-select>
但当我查看vue时,始终会选择devtools(当我从laravel收到失败的验证响应时):

当我
dd(旧的('organizations_working_at'))不是空的,是一个数组


我可能做错了什么?

我认为您需要将道具设置为:

prpSelected: {
  type: Array,
  default: []
}
并返回数据,以便:

selected: this.prpSelected ? this.prpSelected : []

我为格式问题道歉,我在iPhone上回答。
prpSelected: {
  type: Array,
  default: []
}
selected: this.prpSelected ? this.prpSelected : []