fix reload
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div>{{ reloadUrl }}</div>
|
||||||
<SMPageStatus
|
<SMPageStatus
|
||||||
v-if="pageLoading == false && pageStatus != 200"
|
v-if="pageLoading == false && pageStatus != 200"
|
||||||
:status="pageStatus" />
|
:status="pageStatus" />
|
||||||
@@ -75,6 +76,7 @@ const pageStatus = ref(200);
|
|||||||
const pageLoading = ref(true);
|
const pageLoading = ref(true);
|
||||||
const showForm = ref("complete");
|
const showForm = ref("complete");
|
||||||
const fileUrl = ref("");
|
const fileUrl = ref("");
|
||||||
|
const reloadUrl = ref("");
|
||||||
const fileName = ref("");
|
const fileName = ref("");
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
|
|
||||||
@@ -131,6 +133,11 @@ const handleClose = () => {
|
|||||||
*/
|
*/
|
||||||
const handleLoad = async () => {
|
const handleLoad = async () => {
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
|
if (reloadUrl.value === "") {
|
||||||
|
reloadUrl.value = window.location.href;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
route === undefined ||
|
route === undefined ||
|
||||||
route.params === undefined ||
|
route.params === undefined ||
|
||||||
@@ -187,7 +194,7 @@ const handleLoad = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleReload = () => {
|
const handleReload = () => {
|
||||||
window.location.reload();
|
window.location.href = reloadUrl.value;
|
||||||
};
|
};
|
||||||
|
|
||||||
handleLoad();
|
handleLoad();
|
||||||
|
|||||||
Reference in New Issue
Block a user