移除一些eslint的报错
This commit is contained in:
parent
b434710c59
commit
3602b9865f
@ -255,9 +255,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getShareList, getShareTypes, delShares, saveShare} from '@/api/share'
|
import { getShareList, getShareTypes, delShares, saveShare } from '@/api/share'
|
||||||
import {getGame} from '@/api/games'
|
import { getGame } from '@/api/games'
|
||||||
import {mapGetters} from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import getPageTitle from '@/utils/get-page-title'
|
import getPageTitle from '@/utils/get-page-title'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -322,9 +322,9 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// common
|
// common
|
||||||
getGameInfo(cb) {
|
getGameInfo(cb) {
|
||||||
getGame({uid: this.uid})
|
getGame({ uid: this.uid })
|
||||||
.then(res => {
|
.then(res => {
|
||||||
const {data} = res
|
const { data } = res
|
||||||
if (data.errcode === 0) {
|
if (data.errcode === 0) {
|
||||||
this.gameInfo = data.gameInfo
|
this.gameInfo = data.gameInfo
|
||||||
this.platformsArr = data.gameInfo.platforms
|
this.platformsArr = data.gameInfo.platforms
|
||||||
@ -386,7 +386,7 @@ export default {
|
|||||||
uid: this.gameInfo._id,
|
uid: this.gameInfo._id,
|
||||||
gameId: this.gameInfo.game_id,
|
gameId: this.gameInfo.game_id,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
const {data} = res
|
const { data } = res
|
||||||
if (data.errcode === 0) {
|
if (data.errcode === 0) {
|
||||||
this.$message.success('删除成功!')
|
this.$message.success('删除成功!')
|
||||||
}
|
}
|
||||||
@ -508,7 +508,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
formatArea(row, column, cellValue, index) {
|
formatArea(row, column, cellValue, index) {
|
||||||
return cellValue ? cellValue : '不指定'
|
return cellValue || '不指定'
|
||||||
},
|
},
|
||||||
formPublished(row, column, cellValue, index) {
|
formPublished(row, column, cellValue, index) {
|
||||||
return cellValue === true ? '是' : '否'
|
return cellValue === true ? '是' : '否'
|
||||||
@ -521,7 +521,7 @@ export default {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return platform ? platform : '暂无'
|
return platform || '暂无'
|
||||||
},
|
},
|
||||||
delShare(row) {
|
delShare(row) {
|
||||||
this.$confirm('是否删除该分享图?', '提示', {
|
this.$confirm('是否删除该分享图?', '提示', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user