Commit 3c197365 authored by “yiyousong”'s avatar “yiyousong”

feat: 添加屏幕适配

parent c52cb514
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
"moment": "^2.29.4", "moment": "^2.29.4",
"npm": "^6.13.7", "npm": "^6.13.7",
"secure-ls": "^1.2.6", "secure-ls": "^1.2.6",
"v-scale-screen": "1.0.2",
"voca": "^1.4.0", "voca": "^1.4.0",
"vue": "^2.6.14", "vue": "^2.6.14",
"vue-barcode": "^1.3.0", "vue-barcode": "^1.3.0",
......
<template> <template>
<div class="app"> <v-scale-screen width="1920" height="1080" :fullScreen="true">
<router-view></router-view> <div class="app">
<NetworkError :isShowError="isShowError"></NetworkError> <router-view></router-view>
<EnabledDev :enabled="enabled"></EnabledDev> <NetworkError :isShowError="isShowError"></NetworkError>
</div> <EnabledDev :enabled="enabled"></EnabledDev>
</div>
</v-scale-screen>
</template> </template>
<script> <script>
......
...@@ -30,6 +30,9 @@ Vue.use(scroll); ...@@ -30,6 +30,9 @@ Vue.use(scroll);
// 格式化插件 // 格式化插件
import format from "vue-text-format"; import format from "vue-text-format";
Vue.use(format); Vue.use(format);
// 屏幕适配
import VScaleScreen from "v-scale-screen";
Vue.use(VScaleScreen);
// 引入数据埋点 // 引入数据埋点
import vueStatistics from "@/utils/vue-statistics"; import vueStatistics from "@/utils/vue-statistics";
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment