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

fix: 修改测试地址

上级 030bc91a
...@@ -23,4 +23,4 @@ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false ...@@ -23,4 +23,4 @@ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
VITE_DROP_CONSOLE = true 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 @@ ...@@ -2,18 +2,38 @@
* @Author: xiejiang * @Author: xiejiang
* @Date: 2024-11-05 10:14:56 * @Date: 2024-11-05 10:14:56
* @LastEditors: xiejiang * @LastEditors: xiejiang
* @LastEditTime: 2024-11-07 10:34:05 * @LastEditTime: 2024-12-10 16:07:40
* @Description: * @Description:
* Copyright(c)2024 by 好老师教育科技有限公司 All right Reserved. * Copyright(c)2024 by 好老师教育科技有限公司 All right Reserved.
--> -->
<template> <template>
<t-config-provider :global-config="globalConfig"> <div>
<router-view></router-view> <t-config-provider :global-config="globalConfig">
</t-config-provider> <router-view></router-view>
</t-config-provider>
<!-- <UpdataVersion ref="updataVersionRef" /> -->
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
// import { useUserStore } from '@/stores/modules/user'
import { merge } from 'lodash-es' 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({ const globalConfig = merge({
mode: '', mode: '',
calendar: {}, calendar: {},
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: xiejiang * @Author: xiejiang
* @Date: 2024-12-10 15:36:04 * @Date: 2024-12-10 15:36:04
* @LastEditors: xiejiang * @LastEditors: xiejiang
* @LastEditTime: 2024-12-10 15:46:52 * @LastEditTime: 2024-12-10 16:00:23
* @Description: 更新版本弹窗 * @Description: 更新版本弹窗
* Copyright(c)2024 by 好老师教育科技有限公司 All right Reserved. * Copyright(c)2024 by 好老师教育科技有限公司 All right Reserved.
--> -->
...@@ -19,18 +19,15 @@ ...@@ -19,18 +19,15 @@
<span>业务分支:</span> <span>业务分支:</span>
<span>{{ state.platformType == 1 ? '平台端' : '机构端' }}</span> <span>{{ state.platformType == 1 ? '平台端' : '机构端' }}</span>
</div> </div>
<div> <div class="flex items-center">
<span>版本号:</span> <span>版本号:</span>
<span>{{ state.version }}</span> <span>{{ state.version }}</span>
</div> </div>
<div> <div class="flex items-center">
<span>更新说明:</span> <span>更新说明:</span>
<div class="content-div" v-html="state.description"></div> <div class="content-div" v-html="state.description"></div>
</div> </div>
<!-- <t-button type="primary" size="small" class="m-t-32" @click="handleSure" :loading="loading"> <t-button class="mt-[60px] h-[48px] w-full text-[16px]" type="submit" shape="round">更新至最新版本</t-button>
{{ btmTitle }}
</-button> -->
<!-- <img :src="bgImage" alt="" /> -->
</main> </main>
</template> </template>
</Dialog> </Dialog>
...@@ -40,6 +37,15 @@ ...@@ -40,6 +37,15 @@
import { ResVersion } from '@/api/interface/version/index' import { ResVersion } from '@/api/interface/version/index'
const isShowPuzzleVcode = ref(false) const isShowPuzzleVcode = ref(false)
const state = reactive<ResVersion>({}) const state = reactive<ResVersion>({})
const open = (data: ResVersion) => {
isShowPuzzleVcode.value = true
state.value = data
}
defineExpose({
open
})
</script> </script>
<style lang="less" scoped></style> <style lang="less" scoped></style>
...@@ -33,6 +33,7 @@ export interface UserInfo { ...@@ -33,6 +33,7 @@ export interface UserInfo {
status: string status: string
telephone: string telephone: string
token: string token: string
needUpd?: Boolean
userId: string userId: string
userName: string userName: string
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: xiejiang * @Author: xiejiang
* @Date: 2024-11-11 09:38:40 * @Date: 2024-11-11 09:38:40
* @LastEditors: xiejiang * @LastEditors: xiejiang
* @LastEditTime: 2024-12-10 11:21:21 * @LastEditTime: 2024-12-10 16:03:16
* @Description: 系统字典-管理子集 * @Description: 系统字典-管理子集
* Copyright(c)2024 by 好老师教育科技有限公司 All right Reserved. * Copyright(c)2024 by 好老师教育科技有限公司 All right Reserved.
--> -->
...@@ -217,7 +217,7 @@ const handleDel = (row: ResDictionary) => () => { ...@@ -217,7 +217,7 @@ const handleDel = (row: ResDictionary) => () => {
// 排序 // 排序
const handleSort = (row: ResDictionary, isUp: boolean) => () => { 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(() => { dectionoryPostSort({ dictDataId: row.dictDataId as string, newSortNum: sort }).then(() => {
MessagePlugin.success('排序成功') MessagePlugin.success('排序成功')
GetDictDataList() GetDictDataList()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论