Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
15d2a260
Commit
15d2a260
authored
Jun 13, 2023
by
赵伟庚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 首选项配置会话有效期最大值使用configmap中的值
parent
fd116e07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
public/config/configmap.js
public/config/configmap.js
+1
-1
src/page/main/config/preference/index.vue
src/page/main/config/preference/index.vue
+4
-5
No files found.
public/config/configmap.js
View file @
15d2a260
window
.
service
Config
=
{
window
.
default
Config
=
{
session_validity_max
:
30
};
\ No newline at end of file
src/page/main/config/preference/index.vue
View file @
15d2a260
...
...
@@ -122,7 +122,7 @@
</el-input>
<el-tooltip
placement=
"top-start"
effect=
"light"
>
<
template
#content
>
<span>
范围(10~30)
</span>
<span>
{{
`范围(10~${session_validity_max
}
)`
}}
<
/span>
<
br
/>
<
span
>
单位,分钟
<
/span>
<
br
/>
...
...
@@ -225,7 +225,7 @@ import bgBreadcrumb from "@/components/bg-breadcrumb.vue";
import
{
ElMessage
}
from
"
element-plus
"
;
import
axios
from
"
@/request/http.js
"
;
const
session_validity_max
=
window
.
service
Config
.
session_validity_max
;
const
session_validity_max
=
window
.
default
Config
.
session_validity_max
;
const
authorizeFormRef
=
ref
(
null
);
const
secureFormRef
=
ref
(
null
);
...
...
@@ -270,8 +270,8 @@ const state = reactive({
{
type
:
"
number
"
,
min
:
10
,
max
:
30
,
message
:
"
请输入10~30的整数
"
,
max
:
session_validity_max
,
message
:
`请输入10~${session_validity_max
}
的整数`
,
trigger
:
"
blur
"
,
}
,
],
...
...
@@ -328,7 +328,6 @@ const {
}
=
toRefs
(
state
);
onBeforeMount
(()
=>
{
getPreferenceConfig
();
console
.
log
(
"
最大时长限制是
"
,
session_validity_max
)
}
);
//切换菜单选项
const
switchMenu
=
(
index
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment