//获取用户选择的语言 export async function getLanguage() { let language = ""; await uni.getStorage({ key: "language", success: function (res) { language = res.data; }, }); console.log(language); return language; }