fix bug translation

This commit is contained in:
Geriano
2022-08-31 12:50:46 +07:00
parent 7da4b73493
commit 9f42185400

View File

@@ -17,6 +17,8 @@ const appName = window.document.getElementsByTagName('title')[0]?.innerText || '
const { $token } = JSON.parse(document.getElementById('app').dataset.page).props
axios.defaults.headers.common['Authorization'] = `Bearer ${$token}`
commons.getAllDefinedTransaction()
Object.keys(commons).forEach(key => Object.defineProperty(window, key, {
value: commons[key],
}))