plm前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1020 B

3 years ago
​
​
​
​
​
​
​
​
​
​
3 years ago
2 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
  1. export default {
  2. namespaced: true,
  3. state: {
  4. id: 0,
  5. name: '',
  6. site: 0,
  7. languageDefault: '',
  8. userDisplay: '',
  9. userDev: false,
  10. multiLanguage: '',
  11. authControl: '',
  12. userSite: 0,
  13. bmPicUrl:process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? 'http://192.168.1.83:81/upload/' : 'http://172.19.1.142:80/upload/',
  14. },
  15. mutations: {
  16. updateId (state, id) {
  17. state.id = id
  18. },
  19. updateName (state, name) {
  20. state.name = name
  21. },
  22. updateLanguageDefault (state,languageDefault){
  23. state.languageDefault = languageDefault
  24. },
  25. updateSite (state,site){
  26. state.site = site
  27. },
  28. updateUserSite (state,userSite){
  29. state.userSite = userSite
  30. },
  31. updateUserDisplay (state,userDisplay){
  32. state.userDisplay = userDisplay
  33. },
  34. updateMultiLanguage (state,multiLanguage){
  35. state.multiLanguage = multiLanguage
  36. },
  37. updateAuthControl (state,authControl){
  38. state.authControl = authControl
  39. }
  40. }
  41. }