12345678910111213141516171819202122232425 |
- export default class CompassService {
- constructor() {
- this.whiteImg = null
- this.blackImg = null
- }
- setWhiteImg(img) {
- this.whiteImg = img
- }
- setBlackImg(img) {
- this.blackImg = img
- }
- getWhiteImg() {
- return this.whiteImg
- }
- getBlackImg() {
- return this.blackImg
- }
- }
- const compassService = new CompassService()
- export { compassService }
|