代码是:
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
el: "#app",
components: { App },
template: "<App/>"
});
链接到sandbox
两个产品附件的alt_text为空,第三个product_attachment具有alt_text值。单击显示模态时,应检索product_attachment的alt_text值。但是,即使为alt_text分配了null,也正在检索该值。
答案 0 :(得分:0)