添加部分语音提示

This commit is contained in:
2025-12-23 10:01:57 +08:00
parent 8494210a5d
commit 7f720eb2ad
3 changed files with 16 additions and 1 deletions

View File

@@ -98,6 +98,9 @@ import img from '@/static/icon/filter.png';
const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore());
import useUserStore from '@/stores/useUserStore';
const { isMiniProgram } = storeToRefs(useUserStore());
import { playTextDirectly } from '@/hook/useTTSPlayer-all-in-one';
const searchValue = ref('');
const historyList = ref([]);
const listCom = ref([]);
@@ -188,6 +191,7 @@ function searchBtn() {
if (!searchValue.value) {
return;
}
playTextDirectly('正在为您查找岗位')
historyList.value.unshift(searchValue.value);
historyList.value = unique(historyList.value);
uni.setStorageSync('searchList', historyList.value);