Browse Source

feat: 静止爬虫

lanjianrong 5 năm trước cách đây
mục cha
commit
522b5c33ce

+ 3 - 3
src/pages/Product/Lock/Lockstore/components/LocksDetail/LockModal.jsx

@@ -67,13 +67,13 @@ const LockModal = props => {
         if (params?.current === 1) {
           scrollRef.current?.scrollTo({ top: 0 })
           // 请求的是第一页
-          setState({ ...state, longle, total, laoding: false, ...params })
+          setState({ ...state, longle, total, loading: false, ...params })
         } else {
           setState({
             ...state,
             longle: state.longle.concat(longle),
             total,
-            laoding: false,
+            loading: false,
             ...params
           })
         }
@@ -100,7 +100,7 @@ const LockModal = props => {
             ...state,
             client: state.client.concat(client),
             total,
-            loading: true,
+            loading: false,
             ...params
           })
         }

+ 2 - 0
src/robots.txt

@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /