Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 给戳一戳功能增加提示信息 #225

Merged
merged 2 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/PageCustomText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@
</div>
</template>

<el-text v-if="k.toString() === '戳一戳'" type="warning" size="small" class="mb-1">
请确认你使用的 QQ 连接方式支持该功能,若不支持请于「基本设置」中关闭戳一戳来避免日志中出现相关报错。
</el-text>

<div v-for="(k2, index) in v" style="width: 100%; margin-bottom: .5rem;">
<!-- 这里面是单条修改项 -->
<el-row>
Expand Down
7 changes: 5 additions & 2 deletions src/components/misc/PageMiscSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,15 @@
<template #label>
<div>
<span>启用戳一戳</span>
<el-tooltip raw-content content="默认开启。仅QQ平台,关闭后不回应戳一戳。若使用PC端QQNT协议建议关闭此功能,以避免不必要的报错。">
<el-tooltip raw-content content="默认开启。仅QQ平台,关闭后不回应戳一戳。">
<el-icon><question-filled /></el-icon>
</el-tooltip>
</div>
</template>
<el-checkbox label="开启,若使用PC端QQNT协议建议关闭" v-model="config.QQEnablePoke"/>
<el-space direction="vertical" alignment="flex-start" size="small">
<el-checkbox label="开启" v-model="config.QQEnablePoke"/>
<el-text type="warning" size="small">启用前请确认你使用的 QQ 连接方式支持该功能,若不支持请关闭该功能来避免日志中出现相关报错。</el-text>
</el-space>
</el-form-item>

<el-form-item>
Expand Down