mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 23:13:40 +08:00
增加界面缓存文档说明
This commit is contained in:
parent
989f8cd2bc
commit
b604f68aa6
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: yubaolee <yubaolee@163.com> | ahfu~ <954478625@qq.com>
|
* @Author: yubaolee <yubaolee@163.com> | ahfu~ <954478625@qq.com>
|
||||||
* @Date: 2023-08-12 10:48:24
|
* @Date: 2023-08-12 10:48:24
|
||||||
* @LastEditTime: 2023-10-05 10:12:16
|
* @LastEditTime: 2023-12-30 21:10:18
|
||||||
* @Description:
|
* @Description:
|
||||||
* @
|
* @
|
||||||
* @Copyright (c) 2023 by yubaolee | ahfu~ , All Rights Reserved.
|
* @Copyright (c) 2023 by yubaolee | ahfu~ , All Rights Reserved.
|
||||||
@ -121,7 +121,7 @@ module.exports = {
|
|||||||
title: '基础开发', // 必要的
|
title: '基础开发', // 必要的
|
||||||
sidebarDepth: 1, // 可选的, 默认值是 1
|
sidebarDepth: 1, // 可选的, 默认值是 1
|
||||||
collapsable: false,
|
collapsable: false,
|
||||||
children: ['router','openurl'],
|
children: ['router','openurl','keepalive'],
|
||||||
},
|
},
|
||||||
'datapropertyrule',
|
'datapropertyrule',
|
||||||
'printerplan',
|
'printerplan',
|
||||||
|
@ -49,7 +49,7 @@ b => b.UseRowNumberForPaging());
|
|||||||
|
|
||||||
## 使用mysql时,提示无法找到openauthdb.Org
|
## 使用mysql时,提示无法找到openauthdb.Org
|
||||||
|
|
||||||
在linux下面,mysql是区分数据库大小写的,但OpenAuth.Core使用EF映射数据库表是按照首字母大写来处理的。在mysql配置中里面加上:
|
在linux下面,mysql是区分数据库大小写的,但OpenAuth.Net使用EF映射数据库表是按照首字母大写来处理的。在mysql配置中里面加上:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
lower_case_table_names=1
|
lower_case_table_names=1
|
||||||
|
@ -92,7 +92,7 @@ namespace OpenAuth.App
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
如果在一个事务里面有多次`SaveChanges()`的情况,需要使用OpenAuth.Core提供的`ExecuteWithTransaction`处理。如下:
|
如果在一个事务里面有多次`SaveChanges()`的情况,需要使用OpenAuth.Net提供的`ExecuteWithTransaction`处理。如下:
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
//代码详见TestTransaction.cs/NormalSubmit()
|
//代码详见TestTransaction.cs/NormalSubmit()
|
||||||
|
16
docs/pro/keepalive.md
Normal file
16
docs/pro/keepalive.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# 界面缓存
|
||||||
|
|
||||||
|
OpenAuth.Pro以前的版本采用vue [keepAlive](https://cn.vuejs.org/guide/built-ins/keep-alive.html)的方式缓存所有前端组件。从v5.2版本开始,可以在【模块管理】中配置前端是否缓存。如图:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
::: tip 提示
|
||||||
|
目前框架除了【消息日志/系统日志】外,其他界面都是默认自动缓存的。
|
||||||
|
:::
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user