Explorar o código

fix: 修改一级分类没有展示全的问题

yongCode hai 5 días
pai
achega
9612c616cd
Modificáronse 2 ficheiros con 4 adicións e 5 borrados
  1. 3 2
      src/views/HomeView.vue
  2. 1 3
      vite.config.js

+ 3 - 2
src/views/HomeView.vue

@@ -243,7 +243,7 @@ const getType2Tools = (value) => {
   listTools({
     level: '2',
     parentId: value,
-    pageSize: 999
+    pageSize: 65535
   }).then((res) => {
     typeOptions2Ref.value = res.rows
   })
@@ -253,7 +253,8 @@ const init = () => {
   loadingRef.value = true
   // 一级分类
   listTools({
-    level: '1'
+    level: '1',
+    pageSize: 65535
   }).then((res) => {
     typeOptions1Ref.value = res.rows
   })

+ 1 - 3
vite.config.js

@@ -16,8 +16,6 @@ const createAutoImport = () => {
 }
 // https://vitejs.dev/config/
 export default defineConfig(({ mode }) => {
-  const env = loadEnv(mode, process.cwd())
-  console.log(mode, env)
   const plugins = [
     vue(),
     VueSetupExtend(),
@@ -43,7 +41,7 @@ export default defineConfig(({ mode }) => {
       host: true,
       proxy: {
         '/dev-api': {
-          target: 'http://172.16.10.61:8080/prod-api',
+          target: 'http://172.16.8.74:8080/prod-api',
           // target: 'https://vue.ruoyi.vip/prod-api',
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/dev-api/, '')