app更新

dev
wangpeng 2024-06-25 18:04:20 +08:00
parent dc7bd92ac7
commit 5eaa8dc509
2 changed files with 11 additions and 2 deletions

View File

@ -28,3 +28,5 @@ export const setVideo = (params) =>
post("/app/audioOrVideo/createUploadVideo", params); // 阿里云上传视频
export const setVideoRefresh = (params) =>
post("/app/audioOrVideo/refreshUploadVideo", params); // 阿里云上传视频刷新凭证
export const getAppVersion = (params) =>
post("/app/versionmanager/getVersion", params); // 获取动态路由

View File

@ -62,7 +62,7 @@
>
<div>
<layout-qr-code
src="https://file.zcloudchina.com/YTHFile/TrafficFile/uploadFiles/app/traffic_prevention_app.apk"
:src="data.qyAppSrc"
:width="120"
:height="120"
:margin="false"
@ -86,11 +86,12 @@ import { useRouter } from "vue-router";
import { ElMessage } from "element-plus";
import Verification from "@/components/verification/index";
import { useUserStore } from "@/pinia/user";
import { Login } from "@/request/api";
import { getAppVersion, Login } from "@/request/api";
import { debounce } from "throttle-debounce";
import useFormValidate from "@/assets/js/useFormValidate.js";
import LayoutQrCode from "@/components/qr_code/index.vue";
const VITE_FILE_URL = import.meta.env.VITE_FILE_URL;
const router = useRouter();
const formRef = ref(null);
const verificationPass = ref(false);
@ -104,8 +105,14 @@ const data = reactive({
username: [{ required: true, message: "请输入用户名", trigger: "blur" }],
password: [{ required: true, message: "请输入密码", trigger: "blur" }],
},
qyAppSrc: "",
});
const fnAppVersion = async () => {
const resData = await getAppVersion();
data.qyAppSrc = VITE_FILE_URL + resData.pd.FILEURL;
};
await fnAppVersion();
const fnLogin = debounce(
1000,
() => {