1.修改提示弹窗
This commit is contained in:
2024-12-12 16:23:05 +08:00
parent 8e9426eb45
commit a4bddba648
2 changed files with 12 additions and 4 deletions
+10 -3
View File
@@ -7,19 +7,17 @@
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import { h, nextTick, onMounted, ref, watch } from 'vue';
import { onMounted, watch } from 'vue';
import { getEmergencyCenterApi } from '/@/api/user.ts';
import { useUserStore } from '/@/store/modules/user.ts';
import { useRouter } from 'vue-router';
import { getBaseLogin } from '/@/enum/pageEnum.ts';
import { Modal } from 'ant-design-vue';
dayjs.locale('zh-cn');
const locle = zhCN;
const userStore = useUserStore();
const router = useRouter();
const appRouteView = ref();
onMounted(async () => {
try {
@@ -60,5 +58,14 @@
<style lang="less">
.modal-confirm-d {
top: 28% !important;
.ant-modal-confirm-content,
.ant-modal-confirm-title {
color: #ffffff !important;
}
.ant-modal-confirm-btns {
width: 100%;
display: flex;
justify-content: center;
}
}
</style>
+2 -1
View File
@@ -75,7 +75,8 @@ export function emptyChart() {
export function openTestModal() {
nextTick(() => {
Modal.warning({
content: h('span', { style: { color: '#ffffff' } }, '点击确定打开提示'),
title: '提示',
content: '点击确定打开提示音',
okText: '确定',
class: 'modal-confirm-d',
bodyStyle: {