From 50ee7232f3c98fe24a1f2e31dba9508cfec14887 Mon Sep 17 00:00:00 2001 From: gjj <Ganjj@probim.com.cn> Date: Fri, 21 Feb 2025 17:35:39 +0800 Subject: [PATCH] 模型预览 --- src/utils/getUserProfile.js | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/utils/getUserProfile.js b/src/utils/getUserProfile.js new file mode 100644 index 0000000..83251cc --- /dev/null +++ b/src/utils/getUserProfile.js @@ -0,0 +1,9 @@ +import store from "../store/index"; + +export const getUserProfile = () => { + let userProfile = store.getters["common/userProfile"]; + if (!userProfile) { + userProfile = JSON.parse(window.localStorage.getItem("userProfile")); + } + return userProfile; +} \ No newline at end of file -- Gitblit v1.9.3