refactor: web配置和修改 消息彈窗問題
This commit is contained in:
parent
a431967eb0
commit
c020c96919
25
ReadMe.md
25
ReadMe.md
|
@ -32,21 +32,19 @@
|
|||
- [运行项目](https://www.bilibili.com/video/BV1qodHYzErA/?spm_id_from=333.1387.homepage.video_card.click&vd_source=d42b5b664efb958be39eef8ee1196a7e)
|
||||
- [前端部署](https://www.bilibili.com/video/BV1BddHYgEPq/?spm_id_from=333.1387.homepage.video_card.click&vd_source=d42b5b664efb958be39eef8ee1196a7e)
|
||||
- [后端部署](https://www.bilibili.com/video/BV1BddHYgEFt/?spm_id_from=333.1387.homepage.video_card.click&vd_source=d42b5b664efb958be39eef8ee1196a7e)
|
||||
- [Bunny v0.0.1 代码生成器](https://www.bilibili.com/video/BV1qddHYgErv/?spm_id_from=333.1387.homepage.video_card.click)
|
||||
- [代码生成器](https://www.bilibili.com/video/BV1d4Lxz9E3j/?vd_source=d42b5b664efb958be39eef8ee1196a7e)
|
||||
|
||||
**Github地址**
|
||||
|
||||
- 权限后端:https://github.com/BunnyMaster/bunny-admin-server
|
||||
- 权限前端:https://github.com/BunnyMaster/bunny-admin-web
|
||||
- 代码生成器前端:https://github.com/BunnyMaster/generator-code-web
|
||||
- 代码生成器后端:https://github.com/BunnyMaster/generator-code-server
|
||||
- 代码生成器端:https://github.com/BunnyMaster/generator-code-server
|
||||
|
||||
**`Gitee`地址**
|
||||
**Gitee地址**
|
||||
|
||||
- 权限后端:https://gitee.com/BunnyBoss/bunny-admin-server
|
||||
- 权限前端:https://gitee.com/BunnyBoss/bunny-admin-web
|
||||
- 代码生成器前端:https://gitee.com/BunnyBoss/generator-code-web
|
||||
- 代码生成器后端:https://gitee.com/BunnyBoss/generator-code-server
|
||||
- 代码生成器端:https://gitee.com/BunnyBoss/generator-code-server
|
||||
|
||||
## 🚀 项目简介
|
||||
|
||||
|
@ -83,6 +81,21 @@
|
|||

|
||||

|
||||
|
||||
## :tipping_hand_man:用法提示
|
||||
|
||||
> [!TIP]
|
||||
>
|
||||
> 多语言使用提示:
|
||||
>
|
||||
> 虽然直接让用户操作JSON文件有一定门槛(多数用户不熟悉JSON格式),但在多语言项目开发中,JSON格式具有独特优势:
|
||||
>
|
||||
> 1. 结构化特性 - 纯文本格式便于AI解析处理
|
||||
> 2. 高效翻译流程:
|
||||
> - 开发者只需完成中文版本
|
||||
> - 上传JSON文件至AI翻译工具
|
||||
> - 简单指令即可批量生成英文/繁体中文/韩语等版本
|
||||
> 3. 显著节省开发时间 - 实现"一次编写,多语言适配"的高效工作流
|
||||
|
||||
## 🔐 权限控制体系
|
||||
|
||||

|
||||
|
|
|
@ -8,7 +8,7 @@ export const defaultConfig: AxiosRequestConfig = {
|
|||
// 默认请求地址
|
||||
baseURL: '/api',
|
||||
// 设置超时时间
|
||||
timeout: 6000,
|
||||
timeout: 19000,
|
||||
// @ts-expect-error
|
||||
retry: 3, //设置全局重试请求次数(最多重试几次请求)
|
||||
retryDelay: 3000, //设置全局请求间隔
|
||||
|
|
|
@ -74,7 +74,6 @@ export const userI18nStore = defineStore('i18nStore', {
|
|||
|
||||
/* 用文件更新多语言 */
|
||||
async editI18nByFile(data: any) {
|
||||
console.log(data);
|
||||
const result = await uploadI18nFile(data);
|
||||
return storeMessage(result);
|
||||
},
|
||||
|
|
|
@ -333,7 +333,7 @@ onMounted(() => {
|
|||
|
||||
<!-- 提交内容 -->
|
||||
<re-col v-if="hasAuth(auth.update)" :sm="24" :value="24" :xs="24">
|
||||
<el-form-item>
|
||||
<el-form-item label-width="0">
|
||||
<el-button class="w-full" plain type="primary" @click="submitForm(ruleFormRef)">
|
||||
{{ $t('modifyingConfiguration') }}
|
||||
</el-button>
|
||||
|
|
|
@ -151,7 +151,7 @@ onMounted(() => {
|
|||
|
||||
<!-- 简介 -->
|
||||
<el-form-item :label="$t('summary')" prop="summary">
|
||||
<el-input v-model="formState.summary" :autosize="{ minRows: 3, maxRows: 6 }" maxlength="200" minlength="4" show-word-limit type="textarea" />
|
||||
<el-input v-model="formState.summary" :autosize="{ minRows: 3, maxRows: 6 }" maxlength="100" minlength="4" show-word-limit type="textarea" />
|
||||
</el-form-item>
|
||||
|
||||
<!-- 消息等级 -->
|
||||
|
|
|
@ -23,7 +23,7 @@ defineExpose({ formRef });
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<el-card shadow="never" style="height: calc(100vh - 200px); overflow: auto">
|
||||
<el-card shadow="never" style="height: calc(100vh - 300px); overflow: auto">
|
||||
<div class="split-pane">
|
||||
<SplitPane :splitSet="settingLR">
|
||||
<template #paneL>
|
||||
|
@ -120,7 +120,7 @@ defineExpose({ formRef });
|
|||
|
||||
<!-- 简介 -->
|
||||
<el-form-item :label="$t('summary')" prop="summary">
|
||||
<el-input v-model="updateMessage.summary" :autosize="{ minRows: 3, maxRows: 6 }" maxlength="200" minlength="10" show-word-limit type="textarea" />
|
||||
<el-input v-model="updateMessage.summary" :autosize="{ minRows: 3, maxRows: 6 }" maxlength="50" minlength="10" show-word-limit type="textarea" />
|
||||
</el-form-item>
|
||||
|
||||
<!-- 消息等级 -->
|
||||
|
|
Loading…
Reference in New Issue