forked from integrated_whb/integrated_whb_vue
app更新
parent
dc7bd92ac7
commit
5eaa8dc509
|
@ -28,3 +28,5 @@ export const setVideo = (params) =>
|
||||||
post("/app/audioOrVideo/createUploadVideo", params); // 阿里云上传视频
|
post("/app/audioOrVideo/createUploadVideo", params); // 阿里云上传视频
|
||||||
export const setVideoRefresh = (params) =>
|
export const setVideoRefresh = (params) =>
|
||||||
post("/app/audioOrVideo/refreshUploadVideo", params); // 阿里云上传视频刷新凭证
|
post("/app/audioOrVideo/refreshUploadVideo", params); // 阿里云上传视频刷新凭证
|
||||||
|
export const getAppVersion = (params) =>
|
||||||
|
post("/app/versionmanager/getVersion", params); // 获取动态路由
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<layout-qr-code
|
<layout-qr-code
|
||||||
src="https://file.zcloudchina.com/YTHFile/TrafficFile/uploadFiles/app/traffic_prevention_app.apk"
|
:src="data.qyAppSrc"
|
||||||
:width="120"
|
:width="120"
|
||||||
:height="120"
|
:height="120"
|
||||||
:margin="false"
|
:margin="false"
|
||||||
|
@ -86,11 +86,12 @@ import { useRouter } from "vue-router";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import Verification from "@/components/verification/index";
|
import Verification from "@/components/verification/index";
|
||||||
import { useUserStore } from "@/pinia/user";
|
import { useUserStore } from "@/pinia/user";
|
||||||
import { Login } from "@/request/api";
|
import { getAppVersion, Login } from "@/request/api";
|
||||||
import { debounce } from "throttle-debounce";
|
import { debounce } from "throttle-debounce";
|
||||||
import useFormValidate from "@/assets/js/useFormValidate.js";
|
import useFormValidate from "@/assets/js/useFormValidate.js";
|
||||||
import LayoutQrCode from "@/components/qr_code/index.vue";
|
import LayoutQrCode from "@/components/qr_code/index.vue";
|
||||||
|
|
||||||
|
const VITE_FILE_URL = import.meta.env.VITE_FILE_URL;
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const formRef = ref(null);
|
const formRef = ref(null);
|
||||||
const verificationPass = ref(false);
|
const verificationPass = ref(false);
|
||||||
|
@ -104,8 +105,14 @@ const data = reactive({
|
||||||
username: [{ required: true, message: "请输入用户名", trigger: "blur" }],
|
username: [{ required: true, message: "请输入用户名", trigger: "blur" }],
|
||||||
password: [{ 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(
|
const fnLogin = debounce(
|
||||||
1000,
|
1000,
|
||||||
() => {
|
() => {
|
||||||
|
|
Loading…
Reference in New Issue