feat:更新朋友圈功能
This commit is contained in:
@@ -8,11 +8,20 @@
|
||||
:maxlength="100" show-word-limit
|
||||
placeholder="请输入内容"/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="图片">
|
||||
<upload-image v-model="foodStore.currentMoment.imageList"
|
||||
:service-url="fileServiceUrl"
|
||||
:image-limit="4"
|
||||
:service-file-root-path="serviceFileRootPath"
|
||||
:image-path="foodStore.imagePath"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<div class="button-container">
|
||||
<el-button type="primary" @click="confirmClick">确认</el-button>
|
||||
<el-button type="danger" @click="deleteClick">删除</el-button>
|
||||
<el-button v-if="foodStore.momentApiType === 'UPDATE'"
|
||||
type="danger" @click="deleteClick">删除</el-button>
|
||||
<el-button type="info" @click="cancelClick">取消</el-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -47,9 +56,9 @@ const cancelClick = () => {
|
||||
}
|
||||
|
||||
const deleteClick = () => {
|
||||
commonElMessageBox('是否确认删除该朋友圈?').then(() => {
|
||||
commonElMessageBox('是否确认删除该朋友圈?').then(async () => {
|
||||
foodStore.momentApiType = 'DELETE'
|
||||
foodStore.handleMomentApi(foodStore.currentMoment)
|
||||
await foodStore.handleMomentApi(foodStore.currentMoment)
|
||||
history.back()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -5,6 +5,14 @@
|
||||
<span>版本号:</span>
|
||||
<span>{{ appStore.version }}</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
IOS下载地址:<el-image :src="getAssetsImageFile('ios.png')"/>
|
||||
</div>
|
||||
<div>
|
||||
Android下载地址:
|
||||
</div>
|
||||
|
||||
<div class="button-container">
|
||||
<el-button type="primary" @click="viewLatestVersionClick">检查新版本</el-button>
|
||||
<el-button type="primary" @click="logoutClick">退出登录</el-button>
|
||||
@@ -17,6 +25,7 @@ import { useAppStore } from '@/store/app.ts'
|
||||
import { useUserStore } from '@/store/user.ts'
|
||||
import { useAuthStore } from '@/store/auth.ts'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { getAssetsImageFile } from '@/utils'
|
||||
|
||||
const appStore = useAppStore()
|
||||
const userStore = useUserStore()
|
||||
|
||||
Reference in New Issue
Block a user