|
@@ -71,7 +71,7 @@
|
|
|
<script setup>
|
|
|
import {SET_TOKEN, SET_UNAME, SET_USER_INFO} from "@/store/modules/app/type";
|
|
|
import Common from "@/components/Common";
|
|
|
-import { ref, reactive, toRefs } from "vue";
|
|
|
+import { ref, reactive, toRefs,onMounted } from "vue";
|
|
|
import { useStore } from "vuex";
|
|
|
import { useRouter } from "vue-router";
|
|
|
|
|
@@ -95,9 +95,12 @@ const form = reactive({
|
|
|
const { phone, code } = toRefs(form);
|
|
|
const ref_form = ref(null);
|
|
|
const success = ref(false);
|
|
|
-sessionStorage.clear();
|
|
|
store.commit(`app/${SET_TOKEN}`, "");
|
|
|
router.options.isAddDynamicMenuRoutes = false;
|
|
|
+onMounted(() => {
|
|
|
+ sessionStorage.clear();
|
|
|
+ localStorage.clear();
|
|
|
+})
|
|
|
|
|
|
|
|
|
const onSubmit = () => {
|