|
|
@@ -4,8 +4,7 @@ import Vue from 'vue'
|
|
|
import App from './App'
|
|
|
import router from './router'
|
|
|
import store from './config/config'
|
|
|
-import locale from 'element-ui/lib/locale/lang/en'
|
|
|
-import { Loading,ElementUI } from 'element-ui';
|
|
|
+import { Loading } from 'element-ui';
|
|
|
// Message,
|
|
|
import { myMessage } from './components/tools/message';
|
|
|
import ajax from './common/axios.config'
|
|
|
@@ -21,9 +20,7 @@ import drag from './components/directive/el-drag-dialog';
|
|
|
import VueAudio from 'vue-audio-better'
|
|
|
import './assets/css/markdownCss.css'
|
|
|
|
|
|
-import cn from "./lang/cn.json";
|
|
|
-import hk from "./lang/hk.json";
|
|
|
-import en from "./lang/en.json";
|
|
|
+
|
|
|
|
|
|
Vue.use(VideoPlayer).use(VueAudio).use(VueCookies).use(hevueImgPreview, {
|
|
|
clickMaskCLose: true
|
|
|
@@ -50,23 +47,7 @@ Vue.prototype.openLoading = function(target) {
|
|
|
}
|
|
|
Vue.prototype.$qs = qs
|
|
|
//注册到vue原型上
|
|
|
-let lang = new Object();
|
|
|
-let domain_name = "";
|
|
|
|
|
|
-if (window.location.href.includes("cocorobo.cn")) {
|
|
|
- domain_name="cn";
|
|
|
- lang = cn;
|
|
|
-} else if (window.location.href.includes("cocorobo.hk")) {
|
|
|
- domain_name="hk";
|
|
|
- lang = hk;
|
|
|
-} else if (window.location.href.includes("cocorobo.com")) {
|
|
|
- domain_name="com";
|
|
|
- lang=en;
|
|
|
-}else{
|
|
|
- domain_name="cn";
|
|
|
- lang=cn;
|
|
|
-}
|
|
|
-Vue.prototype.lang =lang;
|
|
|
|
|
|
|
|
|
/* eslint-disable no-new */
|
|
|
@@ -76,11 +57,7 @@ new Vue({
|
|
|
components: { App },
|
|
|
template: '<App/>'
|
|
|
})
|
|
|
-if(domain_name==='com'){//英文版
|
|
|
- Vue.use(ElementUI,{locale})
|
|
|
-}else{
|
|
|
- Vue.use(ElementUI)
|
|
|
-}
|
|
|
+
|
|
|
|
|
|
VueCookies.config('30d')
|
|
|
|