|
@@ -39,6 +39,10 @@ export const ChannelStore = defineStore('channel', () => {
|
|
|
const res = await axios.$delete(`${api.url}/${payload}`)
|
|
|
return res
|
|
|
}
|
|
|
+ const login = async (payload: any): Promise<IQueryResult> => {
|
|
|
+ const res = await axios.$post(`${api.url}/login`, payload)
|
|
|
+ return res
|
|
|
+ }
|
|
|
return {
|
|
|
count,
|
|
|
doubleCount,
|
|
@@ -47,6 +51,7 @@ export const ChannelStore = defineStore('channel', () => {
|
|
|
fetch,
|
|
|
create,
|
|
|
update,
|
|
|
- del
|
|
|
+ del,
|
|
|
+ login
|
|
|
}
|
|
|
})
|