- AI
- Aggiornamento QUASAR
This commit is contained in:
@@ -2021,6 +2021,26 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
|
||||
},
|
||||
|
||||
async getQueryDS(prompt: string, options: any) {
|
||||
|
||||
const userStore = useUserStore()
|
||||
|
||||
const paramquery = {
|
||||
locale: tools.getLocale(),
|
||||
username: userStore.my.username,
|
||||
prompt,
|
||||
options,
|
||||
}
|
||||
|
||||
return Api.SendReq('/aitools/ds', 'POST', paramquery)
|
||||
.then((res) => {
|
||||
return res.data
|
||||
}).catch((error) => {
|
||||
return {}
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
getItemDate(num: number, day: number, numdays: number, mystr: string) {
|
||||
let mydate = tools.addDays(tools.getDateNow(), day)
|
||||
let mydateend = tools.addDays(mydate, numdays)
|
||||
|
||||
Reference in New Issue
Block a user