Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ProjectBackup/HTML/gcphone/src/store/modules/bank.js
2022-11-19 14:12:22 +01:00

30 lines
427 B
JavaScript

import PhoneAPI from './../../PhoneAPI'
const state = {
bankAmont: '0'
}
const getters = {
bankAmont: ({ bankAmont }) => bankAmont
}
const actions = {
sendpara ({ state }, { id, amount }) {
PhoneAPI.callEvent('gcphone:bankTransfer', {id, amount})
}
}
const mutations = {
SET_BANK_AMONT (state, bankAmont) {
state.bankAmont = bankAmont
}
}
export default {
state,
getters,
actions,
mutations
}