wgl 4 years ago
parent
commit
88f0a372c8

+ 15 - 0
src/projects/factory/App.vue

@@ -0,0 +1,15 @@
+<template>
+	<div id="app">
+		<router-view />
+	</div>
+</template>
+
+<style lang="scss">
+	#app {
+		font-family: Avenir, Helvetica, Arial, sans-serif;
+		-webkit-font-smoothing: antialiased;
+		-moz-osx-font-smoothing: grayscale;
+		text-align: center;
+		color: #2c3e50;
+	}
+</style>

+ 27 - 0
src/projects/factory/main.js

@@ -0,0 +1,27 @@
+import Vue from 'vue'
+import App from './App.vue'
+import router from './router'
+import store from '$project/store'
+
+//引入mui
+import mui from '$project/assets/js/mui.min.js'
+import '$project/assets/css/mui.min.css'
+import Vconsole from 'vconsole'
+
+window.mui = mui;
+window.mui.init();
+
+if (location.hostname === 'localhost') {
+	Vue.prototype.HTTPLOCAT = ''
+} else {
+	const http = window.location.protocol + '//' + location.hostname + ':' + location.port
+	Vue.prototype.HTTPLOCAT = http + ''
+}
+
+Vue.config.productionTip = false
+
+new Vue({
+	router,
+	store,
+	render: h => h(App)
+}).$mount('#app')

+ 15 - 0
src/projects/pension/App.vue

@@ -0,0 +1,15 @@
+<template>
+	<div id="app">
+		<router-view />
+	</div>
+</template>
+
+<style lang="scss">
+	#app {
+		font-family: Avenir, Helvetica, Arial, sans-serif;
+		-webkit-font-smoothing: antialiased;
+		-moz-osx-font-smoothing: grayscale;
+		text-align: center;
+		color: #2c3e50;
+	}
+</style>

+ 27 - 0
src/projects/pension/main.js

@@ -0,0 +1,27 @@
+import Vue from 'vue'
+import App from './App.vue'
+import router from './router'
+import store from '$project/store'
+
+//引入mui
+import mui from '$project/assets/js/mui.min.js'
+import '$project/assets/css/mui.min.css'
+import Vconsole from 'vconsole'
+
+window.mui = mui;
+window.mui.init();
+
+if (location.hostname === 'localhost') {
+	Vue.prototype.HTTPLOCAT = ''
+} else {
+	const http = window.location.protocol + '//' + location.hostname + ':' + location.port
+	Vue.prototype.HTTPLOCAT = http + ''
+}
+
+Vue.config.productionTip = false
+
+new Vue({
+	router,
+	store,
+	render: h => h(App)
+}).$mount('#app')