uploadFile.ts 369 B

12345678910111213141516171819202122
  1. export default {
  2. namespaced: true,
  3. state: {
  4. uploadVisible: false,
  5. fileList: [],
  6. successList: [],
  7. errorList: [],
  8. },
  9. getters: {
  10. },
  11. mutations: {
  12. updata(state, payload) {
  13. for (const key in payload) {
  14. state[key] = payload[key]
  15. }
  16. }
  17. },
  18. actions: {
  19. }
  20. }