|
@ -11,6 +11,12 @@ |
|
|
<el-form-item label="端口值"> |
|
|
<el-form-item label="端口值"> |
|
|
<el-input v-model="config.system.addr"></el-input> |
|
|
<el-input v-model="config.system.addr"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="数据库类型"> |
|
|
|
|
|
<el-select v-model="config.system.dbType"> |
|
|
|
|
|
<el-option value="sqlite"></el-option> |
|
|
|
|
|
<el-option value="mysql"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
<h2>jwt签名</h2> |
|
|
<h2>jwt签名</h2> |
|
|
<el-form-item label="jwt签名"> |
|
|
<el-form-item label="jwt签名"> |
|
|
<el-input v-model="config.jwt.signingKey"></el-input> |
|
|
<el-input v-model="config.jwt.signingKey"></el-input> |
|
@ -19,6 +25,7 @@ |
|
|
<el-form-item label="模型地址"> |
|
|
<el-form-item label="模型地址"> |
|
|
<el-input v-model="config.casbin.modelPath"></el-input> |
|
|
<el-input v-model="config.casbin.modelPath"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<template v-show="config.system.dbType == 'mysql'"> |
|
|
<h2>mysql admin数据库配置</h2> |
|
|
<h2>mysql admin数据库配置</h2> |
|
|
<el-form-item label="username"> |
|
|
<el-form-item label="username"> |
|
|
<el-input v-model="config.mysql.username"></el-input> |
|
|
<el-input v-model="config.mysql.username"></el-input> |
|
@ -41,6 +48,19 @@ |
|
|
<el-form-item label="logMode"> |
|
|
<el-form-item label="logMode"> |
|
|
<el-checkbox v-model="config.log.logMode"></el-checkbox> |
|
|
<el-checkbox v-model="config.log.logMode"></el-checkbox> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template v-show="config.system.dbType == 'sqlite'"> |
|
|
|
|
|
<h2>sqlite admin数据库配置</h2> |
|
|
|
|
|
<el-form-item label="path"> |
|
|
|
|
|
<el-input v-model="config.sqlite.path"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="config"> |
|
|
|
|
|
<el-input v-model="config.sqlite.config"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="logMode"> |
|
|
|
|
|
<el-checkbox v-model="config.sqlite.logMode"></el-checkbox> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</template> |
|
|
<h2>Redis admin数据库配置</h2> |
|
|
<h2>Redis admin数据库配置</h2> |
|
|
<el-form-item label="addr"> |
|
|
<el-form-item label="addr"> |
|
|
<el-input v-model="config.redis.addr"></el-input> |
|
|
<el-input v-model="config.redis.addr"></el-input> |
|
@ -104,6 +124,7 @@ export default { |
|
|
jwt: {}, |
|
|
jwt: {}, |
|
|
casbin: {}, |
|
|
casbin: {}, |
|
|
mysql: {}, |
|
|
mysql: {}, |
|
|
|
|
|
sqlite: {}, |
|
|
redis: {}, |
|
|
redis: {}, |
|
|
qiniu: {}, |
|
|
qiniu: {}, |
|
|
captcha:{}, |
|
|
captcha:{}, |
|
|