feat(ai): 取消 AI 团宝页对纯学生隐藏「进入后台」入口
This commit is contained in:
@@ -80,7 +80,6 @@
|
||||
<p class="user-name">{{ userName }}</p>
|
||||
<div class="footer-actions">
|
||||
<button
|
||||
v-if="showAdminEntry"
|
||||
class="admin-btn"
|
||||
type="button"
|
||||
@click="goAdmin"
|
||||
@@ -403,7 +402,6 @@ import { logout } from "@/utils/page-tab-util";
|
||||
import { copyText } from "@/utils/common";
|
||||
import { resolveDisplayText, isFailedPayload, pickDisplayable, FAILED_TEXT } from "@/utils/ai-result";
|
||||
import { getToken } from "@/utils/token-util";
|
||||
import { isOnlyStudent } from "@/utils/permission";
|
||||
|
||||
type ChatRole = "user" | "assistant";
|
||||
type ChatMode = "chat" | "writing" | "image";
|
||||
@@ -475,11 +473,6 @@ const userName = computed(
|
||||
(loginUser.value.userId ? `用户${loginUser.value.userId}` : "未登录")
|
||||
);
|
||||
|
||||
/**
|
||||
* 是否展示「进入后台」入口:纯学生身份隐藏
|
||||
*/
|
||||
const showAdminEntry = computed(() => !isOnlyStudent());
|
||||
|
||||
const canSend = computed(() => {
|
||||
if (loading.value) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user