// 打印相关 Vuex 模块 // 用于管理打印台、打印机、打印任务等状态 import http from '@/core/request/index' const state = { }; const mutations = { }; const actions = { // 提交打印任务 async sendPrint({ commit }, data) { console.log('提交打印任务:', data); const result = await http('print.send', data); console.log('打印任务提交结果:', result); return result; } }; const getters = { workbenchList: state => state.workbenchList, printerList: state => state.printerList, printTask: state => state.printTask, }; export default { namespaced: true, state, mutations, actions, getters };