提交 ce0c069f authored 作者: xiejiang's avatar xiejiang

fix: 修改测试地址

上级 030bc91a
......@@ -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 = https://api.iep.seevin.com
......@@ -2,18 +2,38 @@
* @Author: xiejiang
* @Date: 2024-11-05 10:14:56
* @LastEditors: xiejiang
* @LastEditTime: 2024-11-07 10:34:05
* @LastEditTime: 2024-12-10 16:07:40
* @Description:
* Copyright(c)2024 by 好老师教育科技有限公司 All right Reserved.
-->
<template>
<t-config-provider :global-config="globalConfig">
<router-view></router-view>
</t-config-provider>
<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: {},
......
......@@ -2,7 +2,7 @@
* @Author: xiejiang
* @Date: 2024-12-10 15:36:04
* @LastEditors: xiejiang
* @LastEditTime: 2024-12-10 15:46:52
* @LastEditTime: 2024-12-10 16: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>
......@@ -33,6 +33,7 @@ export interface UserInfo {
status: string
telephone: string
token: string
needUpd?: Boolean
userId: string
userName: string
}
......
......@@ -2,7 +2,7 @@
* @Author: xiejiang
* @Date: 2024-11-11 09:38:40
* @LastEditors: xiejiang
* @LastEditTime: 2024-12-10 11:21:21
* @LastEditTime: 2024-12-10 16: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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论