|
@@ -1,7 +1,5 @@
|
|
|
import { ajaxObtainShunt, getCommonAdList } from '../../api/modules'
|
|
|
|
|
|
-const process = require('node:process')
|
|
|
-
|
|
|
export default {
|
|
|
namespaced: true,
|
|
|
state: () => ({
|
|
@@ -21,14 +19,13 @@ export default {
|
|
|
async open({ dispatch }) {
|
|
|
dispatch('checkObtainShunt', { isFind: true })
|
|
|
},
|
|
|
- async checkObtainShunt({ commit }, payload = {}) {
|
|
|
+ async checkObtainShunt({ _, commit }, payload = {}) {
|
|
|
ajaxObtainShunt({
|
|
|
type: 'PC',
|
|
|
isFind: payload.isFind
|
|
|
}).then((res) => {
|
|
|
if (res && res.data && res.data.url) {
|
|
|
// window.open(process.env.VUE_APP_BASE_SITE + res.data.url)
|
|
|
-
|
|
|
commit(
|
|
|
'setCustomerUrl',
|
|
|
`${process.env.VUE_APP_BASE_SITE + res.data.url}&from=aside`
|
|
@@ -40,7 +37,7 @@ export default {
|
|
|
close({ commit }) {
|
|
|
commit('setCustomerStatus', false)
|
|
|
},
|
|
|
- async getCommonAdListFn(payload = {}) {
|
|
|
+ async getCommonAdListFn(_, payload = {}) {
|
|
|
const res = await getCommonAdList(payload)
|
|
|
return res?.data
|
|
|
}
|