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