jamesjianpeng/vue-sunduan-UI

View on GitHub
src/main.js

Summary

Maintainability
A
0 mins
Test Coverage

import Vue from 'vue';
import App from '@/App.vue';
import SunduanUI from '@';

Vue.use(SunduanUI);

// Vue.config.productionTip = false;
// Vue.config.productionTip = process.env.NODE_ENV !== 'production';

const createAppId = function() {
  const scriptTag = document.body.lastChild;
  const app = document.createElement('div');
  app.id = 'app';
  document.body.insertBefore(app, scriptTag);
  return '#' + app.id;
};

new Vue({
  el: createAppId(),
  render: (h) => h(App),
});