Merge pull request 'lyc-dev' (#68) from lyc-dev into main

This commit is contained in:
lyc 2024-07-26 13:28:01 +08:00
commit b85bb9b9cc
4 changed files with 6 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -215,6 +215,7 @@ function setLayout() {
height: 30px;
border-radius: 10px;
margin-top: 8px;
margin-right: 10px;
}
.user-avatar:hover {

View File

@ -29,7 +29,7 @@
<i class="iconfont icon-bianji"></i>
<span>编辑</span>
</div>
<div class="item-popover-item" @click="delRow(item)">
<div class="item-popover-item" v-if="userInfo.userId == item.uploadUserId" @click="delRow(item)">
<i class="iconfont icon-shanchu"></i>
<span>删除</span>
</div>
@ -65,11 +65,15 @@ import FileImage from '@/components/file-image/index.vue'
import { deleteSmarttalk, updateSmarttalk } from '@/api/file'
import { addFileToPrepare } from '@/api/subject'
import { getFileSuffix } from '@/utils/ruoyi'
import useUserStore from '@/store/modules/user'
import useResoureStore from '../store'
const { ipcRenderer } = window.electron || {}
const userstore = useUserStore()
const sourceStore = useResoureStore()
const userInfo = userstore.user
// change
const handleSizeChange = (limit) => {
sourceStore.query.pageSize = limit