feat(miniprogram): 配置更新 + 家庭成员/设置页面优化
- dev.ts: 开发环境配置调整 - project.config.json: 自动化审计配置 - family-add: 添加家庭成员页面优化 - settings: 设置页面优化 - config/: 新增项目配置文件
This commit is contained in:
@@ -2,6 +2,10 @@ import type { UserConfigExport } from '@tarojs/cli';
|
||||
|
||||
export default {
|
||||
logger: { quiet: false },
|
||||
mini: {},
|
||||
mini: {
|
||||
miniCssExtractPluginOption: {
|
||||
ignoreOrder: true,
|
||||
},
|
||||
},
|
||||
h5: {},
|
||||
} satisfies UserConfigExport;
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
"miniprogramRoot": "dist/",
|
||||
"compileType": "miniprogram",
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"urlCheck": true,
|
||||
"automationAudits": true,
|
||||
"es6": false,
|
||||
"enhance": false,
|
||||
"compileHotReLoad": true,
|
||||
"postcss": false,
|
||||
"minified": false,
|
||||
"minified": true,
|
||||
"bundle": false,
|
||||
"minifyWXML": true
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ export default function FamilyAdd() {
|
||||
>
|
||||
<View className='form-picker'>
|
||||
<Text className='form-picker-text'>{RELATION_OPTIONS[relationIdx]}</Text>
|
||||
<Text className='form-picker-arrow'>></Text>
|
||||
<Text className='form-picker-arrow'>{'>'}</Text>
|
||||
</View>
|
||||
</Picker>
|
||||
</View>
|
||||
@@ -98,7 +98,7 @@ export default function FamilyAdd() {
|
||||
>
|
||||
<View className='form-picker'>
|
||||
<Text className='form-picker-text'>{GENDER_OPTIONS[genderIdx]}</Text>
|
||||
<Text className='form-picker-arrow'>></Text>
|
||||
<Text className='form-picker-arrow'>{'>'}</Text>
|
||||
</View>
|
||||
</Picker>
|
||||
</View>
|
||||
@@ -114,7 +114,7 @@ export default function FamilyAdd() {
|
||||
<Text className={`form-picker-text ${!birthDate ? 'placeholder' : ''}`}>
|
||||
{birthDate || '请选择'}
|
||||
</Text>
|
||||
<Text className='form-picker-arrow'>></Text>
|
||||
<Text className='form-picker-arrow'>{'>'}</Text>
|
||||
</View>
|
||||
</Picker>
|
||||
</View>
|
||||
|
||||
@@ -68,21 +68,21 @@ export default function Settings() {
|
||||
<Text className='settings-icon-text'>缓</Text>
|
||||
</View>
|
||||
<Text className='settings-label'>清除缓存</Text>
|
||||
<Text className='settings-arrow'>></Text>
|
||||
<Text className='settings-arrow'>{'>'}</Text>
|
||||
</View>
|
||||
<View className='settings-item' onClick={handleAbout}>
|
||||
<View className='settings-icon'>
|
||||
<Text className='settings-icon-text'>关</Text>
|
||||
</View>
|
||||
<Text className='settings-label'>关于我们</Text>
|
||||
<Text className='settings-arrow'>></Text>
|
||||
<Text className='settings-arrow'>{'>'}</Text>
|
||||
</View>
|
||||
<View className='settings-item' onClick={handlePrivacy}>
|
||||
<View className='settings-icon'>
|
||||
<Text className='settings-icon-text'>隐</Text>
|
||||
</View>
|
||||
<Text className='settings-label'>隐私政策</Text>
|
||||
<Text className='settings-arrow'>></Text>
|
||||
<Text className='settings-arrow'>{'>'}</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
|
||||
54
config/default.toml
Normal file
54
config/default.toml
Normal file
@@ -0,0 +1,54 @@
|
||||
[server]
|
||||
host = "0.0.0.0"
|
||||
port = 3000
|
||||
|
||||
[database]
|
||||
url = "__MUST_SET_VIA_ENV__"
|
||||
max_connections = 20
|
||||
min_connections = 5
|
||||
|
||||
[redis]
|
||||
url = "__MUST_SET_VIA_ENV__"
|
||||
|
||||
[jwt]
|
||||
secret = "__MUST_SET_VIA_ENV__"
|
||||
access_token_ttl = "15m"
|
||||
refresh_token_ttl = "7d"
|
||||
|
||||
[auth]
|
||||
super_admin_password = "__MUST_SET_VIA_ENV__"
|
||||
|
||||
[log]
|
||||
level = "info"
|
||||
|
||||
[cors]
|
||||
# Comma-separated allowed origins. Use "*" for development only.
|
||||
allowed_origins = "http://localhost:5173,http://localhost:5174,http://localhost:5175,http://localhost:5176,http://localhost:3000"
|
||||
|
||||
[wechat]
|
||||
appid = "__MUST_SET_VIA_ENV__"
|
||||
secret = "__MUST_SET_VIA_ENV__"
|
||||
# dev_mode = true 跳过 jscode2session,允许微信开发者工具模拟器登录
|
||||
# 生产环境必须为 false(默认)
|
||||
dev_mode = false
|
||||
|
||||
[health]
|
||||
aes_key = "__MUST_SET_VIA_ENV__"
|
||||
hmac_key = "__MUST_SET_VIA_ENV__"
|
||||
|
||||
[crypto]
|
||||
kek = "__MUST_SET_VIA_ENV__"
|
||||
|
||||
[ai]
|
||||
default_provider = "claude"
|
||||
api_key = ""
|
||||
base_url = "https://api.anthropic.com"
|
||||
model = "claude-sonnet-4-6"
|
||||
max_tokens = 2048
|
||||
temperature = 0.3
|
||||
cache_ttl_seconds = 604800
|
||||
rate_limit_patient_daily = 10
|
||||
|
||||
[storage]
|
||||
upload_dir = "./uploads"
|
||||
max_file_size = "10MB"
|
||||
Reference in New Issue
Block a user