YY 2 年之前
父节点
当前提交
d648590f89
共有 2 个文件被更改,包括 12 次插入2 次删除
  1. 6 1
      src/stores/allAdmin/channel.ts
  2. 6 1
      src/stores/allAdmin/dock.ts

+ 6 - 1
src/stores/allAdmin/channel.ts

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

+ 6 - 1
src/stores/allAdmin/dock.ts

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