【发布时间】:2016-05-15 19:26:21
【问题描述】:
我的脚本中有一个错误,我不知道要修复。我想导入我创建的多个 mixin。
import GoogleMaps from '../mixins/GoogleMaps.js';
import MFApi from '../mixins/MFApi.js';
export default {
template: require('../templates/map.html'),
mixins: [GoogleMaps, MFApi],
(...)
但这似乎不起作用。如果 mixins 变量不止一个,我需要如何正确设置它?
一旦我将新的 mixin 添加到变量中,第一个就无法识别了。
【问题讨论】:
标签: javascript vue.js