登录接口参数加密
This commit is contained in:
@@ -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';
|
||||
|
Reference in New Issue
Block a user