Explorar o código

🐛 fix(put-book): page field and type

晓晓晓晓丶vv %!s(int64=4) %!d(string=hai) anos
pai
achega
b72dac0efd
Modificáronse 2 ficheiros con 2 adicións e 6 borrados
  1. 1 5
      src/api/index.ts
  2. 1 1
      src/views/put/put-book.vue

+ 1 - 5
src/api/index.ts

@@ -33,7 +33,7 @@ export const getDeliveryBookList = (
   query: Partial<{
     official_name: string;
     book_name: string;
-    page: 1;
+    page: number;
   }>
 ): AxiosPromise<IList<IDeliveryBook>> => {
   return axios("/getUserDeliveryBooks", {
@@ -204,7 +204,6 @@ export const adChangeCrem = (data: {
   return axios.post("/api/updateAdBid", data);
 };
 
-
 /* 修改广告状态
  * @param null
  */
@@ -214,6 +213,3 @@ export const statusChange = (data: {
 }) => {
   return axios.post("/ad/updateAdStatus", data);
 };
-
-
-

+ 1 - 1
src/views/put/put-book.vue

@@ -138,7 +138,7 @@ const PutBooks = defineComponent({
       onBookLoaded();
     };
 
-    const onBookLoaded = async (query?: { current: 1 }) => {
+    const onBookLoaded = async (query?: { current: number }) => {
       try {
         console.log(query);
         loading.value = true;