|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<a-config-provider :locale="locale">
|
|
|
<div id="app">
|
|
|
+ <div v-if="envtips!=''" class="envtipsBox">{{ envtips }}</div>
|
|
|
<router-view/>
|
|
|
</div>
|
|
|
</a-config-provider>
|
|
@@ -16,10 +17,12 @@ export default {
|
|
|
mixins: [AppDeviceEnquire],
|
|
|
data () {
|
|
|
return {
|
|
|
- locale: zhCN
|
|
|
+ locale: zhCN,
|
|
|
+ envtips: ''
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
+ this.envtips = process.env.VUE_APP_ENVTIPS
|
|
|
// 在页面加载时读取sessionStorage
|
|
|
if (sessionStorage.getItem('store')) {
|
|
|
const data = JSON.parse(sessionStorage.getItem('store'))
|
|
@@ -37,4 +40,14 @@ export default {
|
|
|
#app {
|
|
|
height: 100%;
|
|
|
}
|
|
|
+ .envtipsBox{
|
|
|
+ position: fixed;
|
|
|
+ z-index: 100000;
|
|
|
+ background: #2700ff;
|
|
|
+ width: 230px;
|
|
|
+ text-align: center;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 30px;
|
|
|
+ bottom: 0;
|
|
|
+ }
|
|
|
</style>
|