feat: 添加后台登录验证

This commit is contained in:
sunxiaolong
2024-01-08 00:11:19 +08:00
parent abf09e5592
commit b53fcc83bf

View File

@@ -4,6 +4,16 @@
</div>
</template>
<script setup lang="ts">
import { useRoute } from 'vue-router';
const route = useRoute();
if (route.query?.token) {
localStorage.setItem('token', route.query.token as string);
}
</script>
<style lang="less" scoped>
.layout {
min-height: 100vh;