File tree Expand file tree Collapse file tree 1 file changed +23
-21
lines changed
web/src/view/systemTools/system Expand file tree Collapse file tree 1 file changed +23
-21
lines changed Original file line number Diff line number Diff line change 11<template >
2- <div >
2+ <div class = " system " >
33 <el-form :model =" config" label-width =" 100px" ref =" form" class =" system" >
44 <h2 >系统配置</h2 >
55 <el-form-item label =" 多点登录拦截" >
8888 <el-form-item label =" imgHeight" >
8989 <el-input v-model.number =" config.captcha.imgHeight" ></el-input >
9090 </el-form-item >
91- <h2 >日志配置</h2 >
91+ <h2 >日志配置</h2 >
9292 <el-form-item label =" prefix" >
9393 <el-input v-model.number =" config.log.prefix" ></el-input >
9494 </el-form-item >
104104</template >
105105
106106<script >
107- import { getSystemConfig , setSystemConfig } from ' @/api/system'
107+ import { getSystemConfig , setSystemConfig } from " @/api/system" ;
108108export default {
109- name: ' Config' ,
109+ name: " Config" ,
110110 data () {
111111 return {
112112 config: {
@@ -117,40 +117,42 @@ export default {
117117 sqlite: {},
118118 redis: {},
119119 qiniu: {},
120- captcha: {},
121- log: {}
120+ captcha: {},
121+ log: {}
122122 }
123- }
123+ };
124124 },
125125 async created () {
126- await this .initForm ()
126+ await this .initForm ();
127127 },
128128 methods: {
129129 async initForm () {
130- const res = await getSystemConfig ()
130+ const res = await getSystemConfig ();
131131 if (res .code == 0 ) {
132- this .config = res .data .config
132+ this .config = res .data .config ;
133133 }
134134 },
135135 reload () {},
136136 async update () {
137- const res = await setSystemConfig ({ config: this .config })
137+ const res = await setSystemConfig ({ config: this .config });
138138 if (res .code == 0 ) {
139139 this .$message ({
140- type: ' success' ,
141- message: ' 配置文件设置成功'
142- })
143- await this .initForm ()
140+ type: " success" ,
141+ message: " 配置文件设置成功"
142+ });
143+ await this .initForm ();
144144 }
145145 }
146146 }
147- }
147+ };
148148 </script >
149149<style lang="scss">
150- h2 {
151- padding : 10px ;
152- margin : 10px 0 ;
153- font-size : 16px ;
154- box-shadow :-4px 1px 3px 0px #e7e8e8
150+ .system {
151+ h2 {
152+ padding : 10px ;
153+ margin : 10px 0 ;
154+ font-size : 16px ;
155+ box-shadow : -4px 1px 3px 0px #e7e8e8 ;
156+ }
155157}
156158 </style >
You can’t perform that action at this time.
0 commit comments