update
init
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div class="container-page">
|
||||
<a-button class="link-btn" type="primary" @click="openPage">打开大屏</a-button>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { useUserStore } from '/@/store/modules/user.ts';
|
||||
import { getEnvInfo } from '/@/utils/getEnv';
|
||||
const { token, userInfo } = useUserStore();
|
||||
const { VITE_EMERGENCY_SCREEN } = getEnvInfo(import.meta.env);
|
||||
function openPage() {
|
||||
let data = { msg: token, baseLogin: '/login', baseHome: '/home' };
|
||||
let json = JSON.stringify(data);
|
||||
window.open(`${VITE_EMERGENCY_SCREEN}transfer?data=${json}`, '_blank');
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
.container-page {
|
||||
width: calc(100% - 20px);
|
||||
height: calc(100% - 20px);
|
||||
background-color: #fff;
|
||||
margin: 10px;
|
||||
.link-btn {
|
||||
margin: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user