移除一些eslint的报错

This commit is contained in:
zhl 2020-04-08 15:23:52 +08:00
parent b434710c59
commit 3602b9865f

View File

@ -255,9 +255,9 @@
</template>
<script>
import {getShareList, getShareTypes, delShares, saveShare} from '@/api/share'
import {getGame} from '@/api/games'
import {mapGetters} from 'vuex'
import { getShareList, getShareTypes, delShares, saveShare } from '@/api/share'
import { getGame } from '@/api/games'
import { mapGetters } from 'vuex'
import getPageTitle from '@/utils/get-page-title'
export default {
@ -322,9 +322,9 @@ export default {
methods: {
// common
getGameInfo(cb) {
getGame({uid: this.uid})
getGame({ uid: this.uid })
.then(res => {
const {data} = res
const { data } = res
if (data.errcode === 0) {
this.gameInfo = data.gameInfo
this.platformsArr = data.gameInfo.platforms
@ -386,7 +386,7 @@ export default {
uid: this.gameInfo._id,
gameId: this.gameInfo.game_id,
}).then(res => {
const {data} = res
const { data } = res
if (data.errcode === 0) {
this.$message.success('删除成功!')
}
@ -508,7 +508,7 @@ export default {
}
},
formatArea(row, column, cellValue, index) {
return cellValue ? cellValue : '不指定'
return cellValue || '不指定'
},
formPublished(row, column, cellValue, index) {
return cellValue === true ? '是' : '否'
@ -521,7 +521,7 @@ export default {
break
}
}
return platform ? platform : '暂无'
return platform || '暂无'
},
delShare(row) {
this.$confirm('是否删除该分享图?', '提示', {