From b604f68aa64eff4792bcdced84ece0836712d830 Mon Sep 17 00:00:00 2001 From: wintel Date: Sat, 30 Dec 2023 21:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=95=8C=E9=9D=A2=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E6=96=87=E6=A1=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.js | 4 ++-- docs/core/faq.md | 2 +- docs/core/unitwork.md | 2 +- docs/pro/keepalive.md | 16 ++++++++++++++++ 4 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 docs/pro/keepalive.md diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 6577f3e3..0a35af3e 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -1,7 +1,7 @@ /* * @Author: yubaolee | ahfu~ <954478625@qq.com> * @Date: 2023-08-12 10:48:24 - * @LastEditTime: 2023-10-05 10:12:16 + * @LastEditTime: 2023-12-30 21:10:18 * @Description: * @ * @Copyright (c) 2023 by yubaolee | ahfu~ , All Rights Reserved. @@ -121,7 +121,7 @@ module.exports = { title: '基础开发', // 必要的 sidebarDepth: 1, // 可选的, 默认值是 1 collapsable: false, - children: ['router','openurl'], + children: ['router','openurl','keepalive'], }, 'datapropertyrule', 'printerplan', diff --git a/docs/core/faq.md b/docs/core/faq.md index f1463827..cc900bb9 100644 --- a/docs/core/faq.md +++ b/docs/core/faq.md @@ -49,7 +49,7 @@ b => b.UseRowNumberForPaging()); ## 使用mysql时,提示无法找到openauthdb.Org -在linux下面,mysql是区分数据库大小写的,但OpenAuth.Core使用EF映射数据库表是按照首字母大写来处理的。在mysql配置中里面加上: +在linux下面,mysql是区分数据库大小写的,但OpenAuth.Net使用EF映射数据库表是按照首字母大写来处理的。在mysql配置中里面加上: ```shell lower_case_table_names=1 diff --git a/docs/core/unitwork.md b/docs/core/unitwork.md index fe56da94..f75d11f1 100644 --- a/docs/core/unitwork.md +++ b/docs/core/unitwork.md @@ -92,7 +92,7 @@ namespace OpenAuth.App ``` -如果在一个事务里面有多次`SaveChanges()`的情况,需要使用OpenAuth.Core提供的`ExecuteWithTransaction`处理。如下: +如果在一个事务里面有多次`SaveChanges()`的情况,需要使用OpenAuth.Net提供的`ExecuteWithTransaction`处理。如下: ```csharp //代码详见TestTransaction.cs/NormalSubmit() diff --git a/docs/pro/keepalive.md b/docs/pro/keepalive.md new file mode 100644 index 00000000..eaf57021 --- /dev/null +++ b/docs/pro/keepalive.md @@ -0,0 +1,16 @@ +# 界面缓存 + +OpenAuth.Pro以前的版本采用vue [keepAlive](https://cn.vuejs.org/guide/built-ins/keep-alive.html)的方式缓存所有前端组件。从v5.2版本开始,可以在【模块管理】中配置前端是否缓存。如图: + +![20231230210713](http://img.openauth.net.cn/20231230210713.png) + + +::: tip 提示 +目前框架除了【消息日志/系统日志】外,其他界面都是默认自动缓存的。 +::: + + + + + +