Fix api url mapping

This commit is contained in:
Afiq Hamzah
2024-01-02 19:38:18 +08:00
parent 5bc3403ce2
commit 712706c043
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -49,5 +49,5 @@ PUSHER_APP_SECRET=421b61fb5a8ecce477a6
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
# MIX_API_URL=apiujrah.arrahn # MIX_API_URL=http://api.arrahn
MIX_API_URL=api.arrahn MIX_API_URL=http://apiujrah.arrahn
+3 -3
View File
@@ -126,21 +126,21 @@ Vue.use(require('vue-pusher'), {
} }
}); });
Vue.prototype.$api1 = process.env.MIX_API_URL Vue.prototype.$api1 = process.env.MIX_API_URL + '/';
Vue.prototype.$username = document.querySelector("meta[name='user_name']").getAttribute('content'); Vue.prototype.$username = document.querySelector("meta[name='user_name']").getAttribute('content');
Vue.prototype.$userroles = document.querySelector("meta[name='user_roles']").getAttribute('content'); Vue.prototype.$userroles = document.querySelector("meta[name='user_roles']").getAttribute('content');
let initial = 'KB2'; let initial = 'KB2';
let initialhostname = process.env.MIX_API_URL; let initialhostname = process.env.MIX_API_URL + '/';
let initialtahun = new Date().getFullYear(); let initialtahun = new Date().getFullYear();
const store = new Vuex.Store({ const store = new Vuex.Store({
state: { state: {
$kodcaw: 'KB2', $kodcaw: 'KB2',
$hostname: process.env.MIX_API_URL, $hostname: process.env.MIX_API_URL + '/',
$tahun: new Date().getFullYear() $tahun: new Date().getFullYear()
}, },
plugins: [createPersistedState()], plugins: [createPersistedState()],