chore(cli): remove decamelize pkg for compatiblity issues

This commit is contained in:
陈嘉涵
2019-12-30 15:14:13 +08:00
parent 16cbfd2c85
commit 2b438f84cd
8 changed files with 23 additions and 39 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import Vue from 'vue';
import VueRouter from 'vue-router';
import decamelize from 'decamelize';
import DemoHome from './components/DemoHome';
import { decamelize } from '../common';
import { demos, config } from 'site-mobile-shared';
import { getLang, setDefaultLang } from '../common/locales';
import '../common/iframe-router';
@@ -52,7 +52,7 @@ function getRoutes() {
}
names.forEach(name => {
const component = decamelize(name, '-');
const component = decamelize(name);
if (langs.length) {
langs.forEach(lang => {