重构:优化认证逻辑、界面一致性和错误处理

- 移除聊天和音乐接口的冗余认证绕过配置
  - 为聊天列表查询添加调试日志记录
  - 在即梦和视频模块集成登录弹窗提升用户体验
  - 修复模型属性映射问题(category->tag, description->desc)
  - 移除即梦生成按钮的禁用状态限制
  - 简化即梦设置管理页面布局,去除标签页结构
  - 清理控制台日志输出并改进错误处理一致性
This commit is contained in:
GeekMaster
2025-07-25 15:31:58 +08:00
parent a3f6a641aa
commit 6cfc7175e8
8 changed files with 181 additions and 180 deletions

View File

@@ -6,6 +6,7 @@
// * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
import { checkSession } from '@/store/cache'
import { useSharedStore } from '@/store/sharedata'
import { showMessageError, showMessageOK } from '@/utils/dialog'
import { httpDownload, httpGet, httpPost } from '@/utils/http'
import { replaceImg, substr } from '@/utils/libs'
@@ -40,6 +41,9 @@ export const useJimengStore = defineStore('jimeng', () => {
const showDialog = ref(false)
const currentVideoUrl = ref('')
// 登录弹窗
const shareStore = useSharedStore()
// 功能分类配置
const categories = [
{ key: 'image_generation', name: '图片生成' },
@@ -133,7 +137,7 @@ export const useJimengStore = defineStore('jimeng', () => {
})
const imageEditParams = reactive({
image_urls: [],
image_urls: '',
scale: 0.5,
seed: -1,
})
@@ -343,7 +347,7 @@ export const useJimengStore = defineStore('jimeng', () => {
// 提交任务
const submitTask = async () => {
if (!isLogin.value) {
showMessageError('请先登录')
shareStore.setShowLoginDialog(true)
return
}
if (userPower.value < currentPowerCost.value) {