在vuejs中将属性重新分配给包含的vue文件

时间:2018-08-30 07:53:12

标签: vuejs2

在我的Laravel 5.6 /“ vue”:“ ^ 2.5.7 /” vuetify“:艺术家编辑器I中的“ ^ 1.0.8”应用程序 有一个文件 资源/资产/ js /组件/后端/artists/artistImagesEditor.vue 道具定义为:

props: {

    artist_id: {
        required: true,
    },


}, // props: {

插入为父vue文件的

<artist-images-editor :artist_id="artist_id" :backend_locale="backend_locale"></artist-images-editor>

当我在编辑器中添加新艺术家artist_id时,var具有“ new”值,并且在成功保存后,为其分配了新的id值。 但看起来这个新值并未在resources / assets / js / components / Backend / artists / artistImagesEditor.vue文件中分配/刷新。 是否需要刷新以及如何刷新?

谢谢!

0 个答案:

没有答案