优化聊天配置对话框样式

This commit is contained in:
RockYang 2023-04-08 12:09:40 +08:00
parent 02a1912bba
commit 5acd0290fa

View File

@ -2,7 +2,9 @@
<el-dialog <el-dialog
v-model="$props.show" v-model="$props.show"
:close-on-click-modal="false" :close-on-click-modal="false"
:show-close="false" :show-close="true"
:before-close="close"
:top="top"
title="聊天配置" title="聊天配置"
> >
<div class="user-info"> <div class="user-info">
@ -142,6 +144,15 @@ export default defineComponent({
wechatCard: "https://img.r9it.com/chatgpt/wechat-card.jpeg" wechatCard: "https://img.r9it.com/chatgpt/wechat-card.jpeg"
} }
}, },
computed: {
top: function () {
if (window.innerHeight < 1000) {
return '1vh';
} else {
return '15vh';
}
}
},
mounted() { mounted() {
// //
const data = getLoginUser(); const data = getLoginUser();