fix: share token
This commit is contained in:
@@ -103,6 +103,13 @@ const nickname = ref("");
|
||||
|
||||
const userStore = useUserStore();
|
||||
|
||||
const props = defineProps({
|
||||
shareToken: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
});
|
||||
|
||||
const emit = defineEmits(["logind"]);
|
||||
|
||||
// 是否处于单页模式(朋友圈打开)
|
||||
@@ -206,6 +213,7 @@ const confirmLogin = async () => {
|
||||
nickname: nickname.value || getFestivalName(),
|
||||
avatarUrl: imageUrl,
|
||||
platform: "wx",
|
||||
shareToken: props.shareToken,
|
||||
});
|
||||
// 保存用户信息到store
|
||||
userStore.setUserInfo({
|
||||
|
||||
Reference in New Issue
Block a user