mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 07:27:33 +08:00
code refactor
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import services from '@/lib/services.js';
|
||||
|
||||
export function getMobileUrlQrCodePath() {
|
||||
return services.generateQrCodeUrl('mobile_url');
|
||||
}
|
||||
@@ -400,6 +400,9 @@ export default {
|
||||
ignoreError: !!ignoreError
|
||||
});
|
||||
},
|
||||
generateQrCodeUrl: (qrCodeName) => {
|
||||
return `${api.baseQrcodePath}/${qrCodeName}.png`;
|
||||
},
|
||||
generateMapProxyTileImageUrl: (mapProvider, language) => {
|
||||
const token = userState.getToken();
|
||||
let url = `${api.baseProxyUrlPath}/map/tile/{z}/{x}/{y}.png?provider=${mapProvider}&token=${token}`;
|
||||
|
||||
Reference in New Issue
Block a user