feat(api): 更新优秀录音文件接口路径并添加缓存系统
refactor(views): 在多个视图组件中实现数据缓存机制 为API接口更新路径并添加全面的缓存系统,包括: 1. 修改优秀录音文件接口路径 2. 实现30分钟有效期的缓存机制 3. 添加缓存管理功能(清除、查看状态) 4. 在topOne、secondTop和seniorManager视图组件中应用缓存 5. 开发环境下暴露缓存管理函数方便调试
This commit is contained in:
@@ -713,11 +713,15 @@ const excellentRecord = ref({});
|
||||
// 获取优秀录音文件
|
||||
async function getGoodRecord() {
|
||||
const params = getRequestParams()
|
||||
const params1 = {
|
||||
user_level:userStore.userInfo.user_level.toString(),
|
||||
user_name:userStore.userInfo.username
|
||||
}
|
||||
const hasParams = params.user_name
|
||||
const requestParams = hasParams ? {
|
||||
...params,
|
||||
} : {
|
||||
}
|
||||
} : params1
|
||||
console.log(188811111,requestParams)
|
||||
try {
|
||||
const res = await getExcellentRecordFile(requestParams)
|
||||
excellentRecord.value = res.data.excellent_record_list
|
||||
|
||||
Reference in New Issue
Block a user