Ver Fonte

✨ feat: 商品列表默认开始数据对比

WanGxC há 1 ano atrás
pai
commit
6def5511e2

+ 2 - 2
src/views/productCenter/productList/components/DataTable/index.vue

@@ -44,7 +44,7 @@ const profile = <any>inject('profile')
 const dateRange = <any>inject('dateRange')
 const activeButton = <any>inject('activeButton')
 
-const isCompare = ref(false)
+const isCompare = ref(true)
 const tableLoading = ref(false)
 
 const { productlineId } = useProductlineId()
@@ -154,7 +154,7 @@ function handlePageChange({ currentPage, pageSize }) {
 
 watch([activeButton, productlineId, dateRange], () => {
   tablePage.currentPage = 1
-  isCompare.value = false
+  isCompare.value = true
   fetchTableData(activeButton.value)
 })
 </script>

+ 3 - 3
vite.config.ts

@@ -28,9 +28,9 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
         imports: ['vue', 'vue-router', 'pinia'],
         // resolvers: [ElementPlusResolver()],
       }),
-    //   Components({
-    //     resolvers: [ElementPlusResolver()],
-    //   }),
+      // Components({
+      //   resolvers: [ElementPlusResolver()],
+      // }),
     ],
     root: process.cwd(),
     resolve: { alias },