登录接口参数加密

This commit is contained in:
duyufeng
2024-09-02 11:04:43 +08:00
parent 0cb7edaa7e
commit e8253be8ca
5 changed files with 45 additions and 8 deletions

View File

@@ -2,7 +2,23 @@
<div class="content">{{ content }}</div>
</template>
<script lang="ts" setup>
import { useRouter } from 'vue-router';
import {ref,inject} from 'vue';
import { useRoute, useRouter } from 'vue-router';
const key = ref(0);
const router = useRouter();//获取路由实例
const route = useRoute();//获取当前路由
const getIsshowRefresh = sessionStorage.getItem("isRefrech");
console.log(typeof getIsshowRefresh)
if(getIsshowRefresh && getIsshowRefresh == "1"){
const { fullPath } = route;
console.log(fullPath)
// location.reload()
// router.replace({ path: '/empty' }).then(() => {
// router.replace({ path: fullPath });
// });
sessionStorage.removeItem("isRefrech")
}
console.log(useRouter().currentRoute.value.meta);
const content = useRouter().currentRoute.value.meta.title + 'developing';