From 137dd2780bbe11df15888e7edb71e3374eb971d6 Mon Sep 17 00:00:00 2001 From: menghao <1584479611@qq.com> Date: Tue, 3 Feb 2026 18:28:40 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/.env.development | 2 +- ruoyi-ui/src/api/system/lib.js | 6 +++++- ruoyi-ui/vue.config.js | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/.env.development b/ruoyi-ui/.env.development index ebae234..0e7127a 100644 --- a/ruoyi-ui/.env.development +++ b/ruoyi-ui/.env.development @@ -8,7 +8,7 @@ ENV = 'development' VUE_APP_BASE_API = '/dev-api' # 访问地址(绕过 /dev-api 代理,用于解决静态资源/图片访问 401 认证问题) -VUE_APP_BACKEND_URL = 'http://192.168.50.145:8080' +VUE_APP_BACKEND_URL = 'http://127.0.0.1:8080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/ruoyi-ui/src/api/system/lib.js b/ruoyi-ui/src/api/system/lib.js index 59420c5..dc891b1 100644 --- a/ruoyi-ui/src/api/system/lib.js +++ b/ruoyi-ui/src/api/system/lib.js @@ -5,7 +5,11 @@ export function listLib(query) { return request({ url: '/system/lib/list', method: 'get', - params: query + params: { + ...query, + pageNum: 1, + pageSize: 100 + } }) } diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index afdf886..462f379 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -15,7 +15,7 @@ const CompressionPlugin = require('compression-webpack-plugin') const CopyWebpackPlugin = require('copy-webpack-plugin') const name = process.env.VUE_APP_TITLE || '若依管理系统' // 网页标题 -const baseUrl = 'http://192.168.50.145:8080' // 后端接口 +const baseUrl = 'http://127.0.0.1:8080' // 后端接口 const port = process.env.port || process.env.npm_config_port || 80 // 端口 // 定义 Cesium 源码路径