mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 07:19:26 +00:00
Small update to encryptservice.
This commit is contained in:
parent
b3a29126a4
commit
052ce611f9
1 changed files with 3 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { useDeviceStore } from '@/stores/device'
|
||||
import { AES, enc, pad } from 'crypto-js'
|
||||
import { isLocal } from './ApiService'
|
||||
|
||||
export const encryptAES = (key, str) => {
|
||||
key = keyPad(key)
|
||||
|
|
@ -24,6 +25,8 @@ export const decryptAES = (key, str) => {
|
|||
}
|
||||
|
||||
export const AuthCall = (data) => {
|
||||
if (isLocal()) return data
|
||||
|
||||
const device = useDeviceStore()
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue