feat: 🚀 钉钉跳转

This commit is contained in:
2025-10-16 15:35:43 +08:00
parent 3c72a248fa
commit 574c46580f
6 changed files with 137 additions and 27 deletions

View File

@@ -7,10 +7,13 @@
<script setup lang="ts" name="home">
//登录请求接口
import { getOrgsApi, getWarehousesListApi } from "@/api/modules/global";
import { useRoute, useRouter } from "vue-router";
//用户信息存储
import { useUserStore } from "@/stores/modules/user";
const userStore = useUserStore();
//路由;
const $route = useRoute();
const $router = useRouter();
//获取组织
const getOrgs = async () => {
const result = await getOrgsApi();
@@ -48,6 +51,16 @@ const getWarehousesList = async () => {
}
};
getWarehousesList();
const init = () => {
let redirect_path: any = $route.query.redirect_path;
if (redirect_path) {
setTimeout(() => {
$router.push({ path: redirect_path });
}, 500);
}
};
init();
</script>
<style scoped lang="scss">