对接接口
This commit is contained in:
@ -117,6 +117,7 @@
|
||||
import { toast } from '@/utils/toast'
|
||||
import { getStoreDetails, editStoreInfo } from '@/api/store'
|
||||
import { useStoreStore } from '@/store'
|
||||
import { router } from '@/utils/tools'
|
||||
|
||||
const OSS = inject('OSS')
|
||||
const useStore = useStoreStore()
|
||||
@ -300,9 +301,13 @@
|
||||
|
||||
try {
|
||||
await editStoreInfo(form.value)
|
||||
// 更新默认store信息
|
||||
useStore.defaultStore.name = form.value.name
|
||||
|
||||
EditStore.handleGetStoreDetails()
|
||||
uni.hideLoading()
|
||||
toast.info('保存成功')
|
||||
router.navigateBack(1, 500)
|
||||
} catch (error) {
|
||||
uni.hideLoading()
|
||||
toast.info('保存失败,请稍后重试')
|
||||
|
||||
Reference in New Issue
Block a user