diff --git a/uni-app/App.vue b/uni-app/App.vue index 232a87d9e..334d892e2 100644 --- a/uni-app/App.vue +++ b/uni-app/App.vue @@ -5,6 +5,7 @@ import { getToken, isWeixinBrowser, urlDeconstruction } from '@/utils/common' import useMemberStore from '@/stores/member' import useConfigStore from '@/stores/config' + import useSystemStore from '@/stores/system' import { useLogin } from '@/hooks/useLogin' import { language } from '@/locale' @@ -25,6 +26,8 @@ const configStore = useConfigStore() configStore.getTabbarConfig() await configStore.getLoginConfig() + + useSystemStore().getSitenfo() // 隐藏tabbar uni.hideTabBar() diff --git a/uni-app/api/system.ts b/uni-app/api/system.ts index 4e68d30d8..d9c3ec938 100644 --- a/uni-app/api/system.ts +++ b/uni-app/api/system.ts @@ -32,7 +32,7 @@ export function getAgreementInfo(key : string) { * 重置密码 */ export function resetPassword(data : AnyObject) { - return request.post(`/password/reset`, data, { showErrorMessage: true }) + return request.post(`password/reset`, data, { showErrorMessage: true }) } /** @@ -68,4 +68,11 @@ export function fetchImage(data : AnyObject) { */ export function fetchBase64Image(data : AnyObject) { return request.post('file/image/base64', data) +} + +/** + * 获取站点信息 + */ +export function getSiteInfo() { + return request.get('site') } \ No newline at end of file diff --git a/uni-app/components/diy/system/article/index.vue b/uni-app/components/diy/article/index.vue similarity index 56% rename from uni-app/components/diy/system/article/index.vue rename to uni-app/components/diy/article/index.vue index 8a79c6aba..344f329cd 100644 --- a/uni-app/components/diy/system/article/index.vue +++ b/uni-app/components/diy/article/index.vue @@ -1,8 +1,8 @@