部署后应用程序无法正常工作吗?

时间:2018-09-17 07:38:51

标签: vue.js vuejs2 bitrix

当我尝试使用vue-custom-component时,在vue-router上出现错误

import Vue from 'vue'
import vueCustomElement from 'vue-custom-element';
import App from './App.vue'
import router from './router'
import store from './store'
import Element from 'element-ui'
import elementLocale from 'element-ui/lib/locale/lang/ru-RU'
import VueFullPage from 'vue-fullpage.js'

import Testing from '@/components/Testing.vue'

Vue.config.ignoredElements = [
  'example-component'
];

// Enable the plugin
Vue.use(vueCustomElement);

// Register your component
Vue.customElement('example-component', Testing, {
  // Additional Options: https://github.com/karol-f/vue-custom-element#options
});

Vue.use(Element, { locale: elementLocale });
Vue.use(VueFullPage);
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/fonts.scss';
import './assets/css/main.scss';
import 'animate.css';

<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>testing_baziron_vorobjev</title><link href=./css/app.1fe0df1e.css rel=preload as=style><link href=./css/chunk-vendors.9205998e.css rel=preload as=style><link href=./js/app.10a7c671.js rel=preload as=script><link href=./js/chunk-vendors.9cb8b2ec.js rel=preload as=script><link href=./css/chunk-vendors.9205998e.css rel=stylesheet><link href=./css/app.1fe0df1e.css rel=stylesheet></head><body><noscript><strong>We're sorry but testing doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><example-component></example-component><script src="https://unpkg.com/vue"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/document-register-element/1.4.1/document-register-element.js"></script><script src=./js/chunk-vendors.9cb8b2ec.js></script><script src=./js/app.10a7c671.js></script></body></html>

我使用了vue-cli3。做了一个小应用; 我按照指示做了一切;在命令NPM rub生成跳转错误后

enter image description here

正在下载应用程序本身。但是会出现错误。如果我纠正了图片错误,那么第一个我就无法修复

0 个答案:

没有答案