去掉手动刷新
This commit is contained in:
parent
0de34efa47
commit
05d6c9210c
@ -48,13 +48,6 @@ export function delAd(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 刷新广告缓存
|
|
||||||
export function reflushAd() {
|
|
||||||
return request({
|
|
||||||
url: '/reflush_adinfo',
|
|
||||||
method: 'get',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// 获取广告区域
|
// 获取广告区域
|
||||||
export function getAdAreaList() {
|
export function getAdAreaList() {
|
||||||
|
@ -333,7 +333,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getAdPos, getAd, addAd, updateAd, getAdAreaList, reflushAd} from '@/api/ad'
|
import {getAdPos, getAd, addAd, updateAd, getAdAreaList} from '@/api/ad'
|
||||||
import {getGameList, getJumpList} from '@/api/game'
|
import {getGameList, getJumpList} from '@/api/game'
|
||||||
import {typeList, modeList} from '@/utils/ad-data'
|
import {typeList, modeList} from '@/utils/ad-data'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
@ -772,7 +772,6 @@ export default {
|
|||||||
if (adInfo.id) {
|
if (adInfo.id) {
|
||||||
adInfo.status = 0
|
adInfo.status = 0
|
||||||
const result = await this.updateAd(adInfo)
|
const result = await this.updateAd(adInfo)
|
||||||
this.reflushAd()
|
|
||||||
} else {
|
} else {
|
||||||
const result = await this.addAd(adInfo)
|
const result = await this.addAd(adInfo)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user