更新功能对接
parent
f3c51e150f
commit
7f3218a911
@ -1,44 +1,24 @@
|
||||
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';
|
||||
//import { stringify } from 'query-string';
|
||||
|
||||
// import { url } from '@/utils/url';
|
||||
// import { session } from '@/store/modules/session';
|
||||
@Module({
|
||||
namespaced: true,
|
||||
dynamic: true,
|
||||
store,
|
||||
name: 'product.model',
|
||||
name: 'page.shouye',
|
||||
})
|
||||
export class ReceiptModule extends VuexModule {
|
||||
/**
|
||||
* 原材料菜单
|
||||
*/
|
||||
menuList = [];
|
||||
/**
|
||||
* 查询原材料菜单列表
|
||||
*/
|
||||
// @MutationAction
|
||||
// async getMenuList() {
|
||||
// const result: any = await http.post(
|
||||
// url.menu,
|
||||
// stringify({
|
||||
// // factoryCode: session.factoryCode,
|
||||
// loginName: session.loginName,
|
||||
// resType: 4,
|
||||
// }),
|
||||
// );
|
||||
// console.log('aaaa', result);
|
||||
// const menuList = result.data;
|
||||
// return { menuList };
|
||||
// }
|
||||
export class shouye extends VuexModule {
|
||||
checkversion: any = {};
|
||||
@MutationAction
|
||||
async checkupdate() {
|
||||
const result = await http.post('///');
|
||||
const checkversion = result.data;
|
||||
return checkversion;
|
||||
const result: any = await http.post('/prod-api/system/apkFile/getLastApkVersion', {
|
||||
factory: 1000,
|
||||
});
|
||||
const checkversion: any = result.data;
|
||||
return { checkversion };
|
||||
}
|
||||
}
|
||||
|
||||
export default getModule(ReceiptModule);
|
||||
export default getModule(shouye);
|
||||
|
Loading…
Reference in New Issue