在Blade模板中使用vue
blade 中操作 vue 组件blade 中使用 vue 组件12345678910111213window.Vue = require("vue");import promise from "es6-promise";promise.polyfill();// import Axios from '@/utils/request.js'// Vue.prototype.$ajax = Axios;// 注册全局组件Vue.component("dialog", require("./dialog.vue").default);const dialog = new Vue({ el: "#dialog",});// 实例化vue
在 blade 中
12345678910<section class="dialog-test"> <div id="dialog"> < ...