feat: 一体机适配
This commit is contained in:
9
main.js
9
main.js
@@ -6,6 +6,7 @@ import {
|
||||
import globalFunction from '@/common/globalFunction'
|
||||
import '@/lib/string-similarity.min.js'
|
||||
import similarityJobs from '@/utils/similarity_Job.js';
|
||||
import useScreenStore from './stores/useScreenStore'
|
||||
|
||||
// 组件
|
||||
import AppLayout from './components/AppLayout/AppLayout.vue';
|
||||
@@ -22,6 +23,7 @@ import renderDeliveryRecord from '@/components/renderDeliveryRecord/renderDelive
|
||||
import renderJobCollectionRecord from '@/components/renderJobCollectionRecord/renderJobCollectionRecord.vue';
|
||||
import renderCompanyCollectionRecord from '@/components/renderCompanyCollectionRecord/renderCompanyCollectionRecord.vue';
|
||||
import renderJobViewRecord from '@/components/renderJobViewRecord/renderJobViewRecord.vue';
|
||||
import MyIcons from '@/components/My-icons/my-icons.vue';
|
||||
// import Tabbar from '@/components/tabbar/midell-box.vue'
|
||||
// 自动导入 directives 目录下所有指令
|
||||
console.log(lightAppJssdk)
|
||||
@@ -33,8 +35,7 @@ import {
|
||||
createSSRApp,
|
||||
} from 'vue'
|
||||
|
||||
const foldFeature = window.visualViewport && 'segments' in window.visualViewport
|
||||
console.log('是否支持多段屏幕:', foldFeature)
|
||||
|
||||
|
||||
// 全局组件
|
||||
export function createApp() {
|
||||
@@ -53,6 +54,7 @@ export function createApp() {
|
||||
app.component('renderJobCollectionRecord', renderJobCollectionRecord) //渲染岗位收藏记录
|
||||
app.component('renderCompanyCollectionRecord', renderCompanyCollectionRecord) //渲染公司收藏记录
|
||||
app.component('renderJobViewRecord', renderJobViewRecord) //渲染岗位浏览记录
|
||||
app.component('MyIcons', MyIcons)
|
||||
// app.component('tabbar-custom', Tabbar)
|
||||
|
||||
for (const path in directives) {
|
||||
@@ -74,6 +76,9 @@ export function createApp() {
|
||||
store.use(createUnistorage());
|
||||
app.use(store);
|
||||
|
||||
// 初始化屏幕检测
|
||||
const screenStore = useScreenStore()
|
||||
screenStore.initScreenDetection()
|
||||
return {
|
||||
app,
|
||||
Pinia
|
||||
|
||||
Reference in New Issue
Block a user