Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import ddPlugin from './lib/vue-dd-plugin'
import App from './page/app/index'
window.getParamByName = function(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
};
let dd = window.dd;
const commit = store.commit || store.dispatch;
console.log(process.env.NODE_ENV)
Vue.config.debug = process.env.NODE_ENV !== 'production';
Vue.config.devtools = process.env.NODE_ENV !== 'production';
Vue.component('alert',vux.Alert)
Vue.component('loading',vux.Loading)
Vue.component('group',vux.Group)
Vue.component('x-input',vux.XInput)
Vue.component('x-button',vux.XButton)
let ddConfig = null;
getConfig()
.then((data)=>{
ddConfig = data;
dd.config(ddConfig);
})
// .then(ddIsReady)
// .then(initVue)
// .then(()=>{
// document.querySelector('#init-loading').remove();