update
1.添加弹窗提示音
This commit is contained in:
+5
-2
@@ -53,7 +53,7 @@
|
||||
import EmployeeDialog from '/@/views/components/employeeDialog.vue';
|
||||
import EmergencyDialog from '/@/views/components/emergencyDialog.vue';
|
||||
import YunZuoXiDialog from '/@/views/components/yunZuoXiDialog.vue';
|
||||
import { useTopTime } from '/@/utils/utils.ts';
|
||||
import { openTestModal, useTopTime } from '/@/utils/utils.ts';
|
||||
import { basicPath, emergencyPath, xianYunPath, useSocket } from '/@/utils/socket.ts';
|
||||
import { useRefresh } from '/@/hooks/autoRefresh';
|
||||
import { DEFAULT_TIME } from '/@/hooks/autoRefresh/pageRefreshTime.ts';
|
||||
@@ -72,7 +72,6 @@
|
||||
const dayTimeT = ref();
|
||||
const interval = ref(1);
|
||||
const setting = getSettings(DataType.xian);
|
||||
|
||||
function init() {
|
||||
getTime();
|
||||
interval.value = setInterval(() => {
|
||||
@@ -89,6 +88,7 @@
|
||||
const store = useUserStore();
|
||||
onMounted(() => {
|
||||
init();
|
||||
openTestModal();
|
||||
document.addEventListener('visibilitychange', checkTabState);
|
||||
//设置主题
|
||||
store.setThemeType(ThemeType.light);
|
||||
@@ -166,6 +166,7 @@
|
||||
watch(socketData, (nVal) => {
|
||||
if (nVal) {
|
||||
nextTick(() => {
|
||||
store.setCount();
|
||||
setSocketData(nVal);
|
||||
employeeDialogRef.value.openDialog();
|
||||
});
|
||||
@@ -179,6 +180,7 @@
|
||||
watch(emergencyData, (nVal) => {
|
||||
if (nVal) {
|
||||
nextTick(() => {
|
||||
store.setCount();
|
||||
setEmergencyData(nVal);
|
||||
emergencyDialogRef.value.openDialog();
|
||||
});
|
||||
@@ -190,6 +192,7 @@
|
||||
watch(xianYunData, (nVal) => {
|
||||
if (nVal) {
|
||||
nextTick(() => {
|
||||
store.setCount();
|
||||
setXianYunData(nVal);
|
||||
yunZuoXiDialogRef.value.openDialog();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user