Przeglądaj źródła

fix: startsWith

cuiyalong 9 miesięcy temu
rodzic
commit
e259dd657b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      frontend/src/components/spider/EditSpider.vue

+ 1 - 1
frontend/src/components/spider/EditSpider.vue

@@ -397,7 +397,7 @@ const refreshPageData = (key, value) => {
         // 判断[listLinkCss,listPublishTimeCss]头部是否包含listItemCss
         const targetKeyList = ['listLinkCss', 'listPublishTimeCss']
         if (targetKeyList.includes(key) && value) {
-            if (listItemCss.startsWith(value)) {
+            if (value.startsWith(listItemCss)) {
                 // 替换并去空
                 let newValue = value.replace(listItemCss, '')
                 newValue = newValue.trim()