mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 15:29:26 +00:00
UIX update for alpha release
This commit is contained in:
parent
510e22d82d
commit
cf0ef8bd92
5 changed files with 9 additions and 13 deletions
|
|
@ -2,9 +2,9 @@ import { useDeviceStore } from '@/stores/device'
|
|||
import CryptoJS from 'crypto-js'
|
||||
|
||||
export const appUrl = () => {
|
||||
return window.location.port !== import.meta.env.VITE_MCRM__PORT
|
||||
? `http://${window.location.hostname}:${import.meta.env.VITE_MCRM__PORT}`
|
||||
: ''
|
||||
const port = window.location.port == 5173 ? import.meta.env.VITE_MCRM__PORT : window.location.port
|
||||
|
||||
return `http://${window.location.hostname}:${port}`
|
||||
}
|
||||
|
||||
export const isLocal = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue