global.js
464 Bytes
import App from '../utils/api'
import util from '../utils/util'
const {regeneratorRuntime} = global
module.exports ={
getHasEditorFlag(){
return new Promise(async function(success,fail){
let enter_params=util.cache('enter_params');
let res=await App.Reserve.SellerInfo(enter_params)
if(res.data.config.is_auth==1){
success()
}else{
fail()
}
})
},
}