Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
rsbuild-vue3-template
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
曾哲
rsbuild-vue3-template
Commits
ce0c069f
提交
ce0c069f
authored
12月 10, 2024
作者:
xiejiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修改测试地址
上级
030bc91a
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
38 行增加
和
11 行删除
+38
-11
.env.test
.env.test
+1
-1
App.vue
src/App.vue
+21
-1
index.vue
src/components/UpdateVersion/index.vue
+13
-7
index.ts
src/stores/interface/index.ts
+1
-0
dictionary-subset.vue
src/views/sys-config/dictionary/dictionary-subset.vue
+2
-2
没有找到文件。
.env.test
浏览文件 @
ce0c069f
...
...
@@ -23,4 +23,4 @@ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
VITE_DROP_CONSOLE
=
true
# 测试环境接口地址
VITE_API_URL
=
http
://
172.16
.
3.197
:
8095
VITE_API_URL
=
http
s
://
api
.
iep
.
seevin
.
com
src/App.vue
浏览文件 @
ce0c069f
...
...
@@ -2,18 +2,38 @@
* @Author: xiejiang
* @Date: 2024-11-05 10:14:56
* @LastEditors: xiejiang
* @LastEditTime: 2024-1
1-07 10:34:05
* @LastEditTime: 2024-1
2-10 16:07:40
* @Description:
* Copyright(c)2024 by 好老师教育科技有限公司 All right Reserved.
-->
<
template
>
<div>
<t-config-provider
:global-config=
"globalConfig"
>
<router-view></router-view>
</t-config-provider>
<!--
<UpdataVersion
ref=
"updataVersionRef"
/>
-->
</div>
</
template
>
<
script
setup
lang=
"ts"
>
// import { useUserStore } from '@/stores/modules/user'
import
{
merge
}
from
'lodash-es'
// const userStore = useUserStore()
// const userInfo = computed(() => userStore.userInfo)
// const updataVersionRef = ref()
// watch(userInfo, val => {
// if (!val) return
// nextTick(() => {
// console.log(updataVersionRef.value)
// if (val?.needUpd) {
// updataVersionRef?.value.open(val?.clientLastVersion)
// }
// })
// })
const
globalConfig
=
merge
({
mode
:
''
,
calendar
:
{},
...
...
src/components/UpdateVersion/index.vue
浏览文件 @
ce0c069f
...
...
@@ -2,7 +2,7 @@
* @Author: xiejiang
* @Date: 2024-12-10 15:36:04
* @LastEditors: xiejiang
* @LastEditTime: 2024-12-10 1
5:46:52
* @LastEditTime: 2024-12-10 1
6:00:23
* @Description: 更新版本弹窗
* Copyright(c)2024 by 好老师教育科技有限公司 All right Reserved.
-->
...
...
@@ -19,18 +19,15 @@
<span>
业务分支:
</span>
<span>
{{
state
.
platformType
==
1
?
'平台端'
:
'机构端'
}}
</span>
</div>
<div>
<div
class=
"flex items-center"
>
<span>
版本号:
</span>
<span>
{{
state
.
version
}}
</span>
</div>
<div>
<div
class=
"flex items-center"
>
<span>
更新说明:
</span>
<div
class=
"content-div"
v-html=
"state.description"
></div>
</div>
<!--
<t-button
type=
"primary"
size=
"small"
class=
"m-t-32"
@
click=
"handleSure"
:loading=
"loading"
>
{{
btmTitle
}}
</-button>
-->
<!--
<img
:src=
"bgImage"
alt=
""
/>
-->
<t-button
class=
"mt-[60px] h-[48px] w-full text-[16px]"
type=
"submit"
shape=
"round"
>
更新至最新版本
</t-button>
</main>
</
template
>
</Dialog>
...
...
@@ -40,6 +37,15 @@
import
{
ResVersion
}
from
'@/api/interface/version/index'
const
isShowPuzzleVcode
=
ref
(
false
)
const
state
=
reactive
<
ResVersion
>
({})
const
open
=
(
data
:
ResVersion
)
=>
{
isShowPuzzleVcode
.
value
=
true
state
.
value
=
data
}
defineExpose
({
open
})
</
script
>
<
style
lang=
"less"
scoped
></
style
>
src/stores/interface/index.ts
浏览文件 @
ce0c069f
...
...
@@ -33,6 +33,7 @@ export interface UserInfo {
status
:
string
telephone
:
string
token
:
string
needUpd
?:
Boolean
userId
:
string
userName
:
string
}
...
...
src/views/sys-config/dictionary/dictionary-subset.vue
浏览文件 @
ce0c069f
...
...
@@ -2,7 +2,7 @@
* @Author: xiejiang
* @Date: 2024-11-11 09:38:40
* @LastEditors: xiejiang
* @LastEditTime: 2024-12-10 1
1:21:21
* @LastEditTime: 2024-12-10 1
6:03:16
* @Description: 系统字典-管理子集
* Copyright(c)2024 by 好老师教育科技有限公司 All right Reserved.
-->
...
...
@@ -217,7 +217,7 @@ const handleDel = (row: ResDictionary) => () => {
// 排序
const
handleSort
=
(
row
:
ResDictionary
,
isUp
:
boolean
)
=>
()
=>
{
const
sort
=
isUp
?
(
row
?.
sort
??
0
)
+
1
:
(
row
?.
sort
??
0
)
-
1
const
sort
=
isUp
?
(
row
?.
sort
??
0
)
-
1
:
(
row
?.
sort
??
0
)
+
1
dectionoryPostSort
({
dictDataId
:
row
.
dictDataId
as
string
,
newSortNum
:
sort
}).
then
(()
=>
{
MessagePlugin
.
success
(
'排序成功'
)
GetDictDataList
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论