You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
666 B
TypeScript
25 lines
666 B
TypeScript
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
|
|
import store from '@/store';
|
|
import http from '@/utils/request';
|
|
// import { url } from '@/utils/url';
|
|
// import { session } from '@/store/modules/session';
|
|
@Module({
|
|
namespaced: true,
|
|
dynamic: true,
|
|
store,
|
|
name: 'page.shouye',
|
|
})
|
|
export class shouye extends VuexModule {
|
|
checkversion: any = {};
|
|
@MutationAction
|
|
async checkupdate() {
|
|
const result: any = await http.post('/prod-api/system/apkFile/getLastApkVersion', {
|
|
factory: 1000,
|
|
});
|
|
const checkversion: any = result.data;
|
|
return { checkversion };
|
|
}
|
|
}
|
|
|
|
export default getModule(shouye);
|