12345678910111213141516171819202122 |
- define(['vue', 'component', 'ELEMENT'], function (Vue, component, ELEMENT) {
- var Controller = {
- index: function () {
- Vue.use(component);
- Vue.use(ELEMENT);
- var data = {
- state: Config.switch=='2'?'normal':'hidden',
- data: eval(Config.data),
- mini_open:Config.mini_open,
- };
- console.log(data)
- var Main = {
- el: '#app',
- data: function() {
- return data
- }
- };
- new Vue(Main)
- }
- };
- return Controller;
- });
|