代码提交

This commit is contained in:
黄少君
2023-11-17 20:55:32 +08:00
parent 35b43ffd97
commit c3e62f8922
73 changed files with 1808 additions and 781 deletions

View File

@ -15,6 +15,7 @@ export function useRequest() {
async function doUpdateAvatar(file) {
try {
await upload({
url:'/member/user/update-avatar',
filePath: file.url,
name: 'avatarFile'
});

View File

@ -1,11 +1,6 @@
<template>
<layout>
<uv-navbar
:fixed="false"
title="账号设置"
left-arrow
@leftClick="goBack"
/>
<Header>账号设置</Header>
<view v-if="user">
<view class="y-list">
<uv-upload
@ -146,7 +141,7 @@ import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { storeToRefs } from 'pinia'
import { objectURLToBlob } from '@/utils'
import Header from "@/components/Header/index.vue"
import { useMainStore } from '@/store/store'
import { updateAvatar, updateNickname } from '@/api/user'
import { useGlobalProperties } from "@/hooks";