fix hostname

This commit is contained in:
fifi97
2022-01-11 23:31:17 +08:00
parent 0f09fdcdbd
commit c6013d897c
6 changed files with 35 additions and 152 deletions
-1
View File
@@ -162,7 +162,6 @@ export default {
},
submit() {
console.log('submit!')
this.$v.$touch()
if (this.$v.$invalid) {
this.$toast.error('Sila isi butiran yang disediakan dengan betul!')
+3 -3
View File
@@ -70,15 +70,15 @@ Vue.use(require('vue-pusher'), {
}
});
Vue.prototype.$api1 = 'http://localhost:8000'
Vue.prototype.$api1 = 'http://api.arrahn'
let initial = 'KB2';
let initialhostname = 'http://localhost:8000';
let initialhostname = 'http://api.arrahn';
const store = new Vuex.Store({
state: {
$kodcaw: 'KB2',
$hostname: 'http://localhost:8000'
$hostname: 'http://api.arrahn'
},
plugins: [createPersistedState()],
mutations: {
-3
View File
@@ -47,9 +47,6 @@ export default{
]
}
},
created(){
console.log(this.$props.items)
},
methods:{
redirectHome: function(){
return '/';
+4 -4
View File
@@ -85,7 +85,7 @@
case 'JLI':
case 'ARP':
case '020303':{
this.sethostname('http://localhost:8000')
this.sethostname('http://api.arrahn')
console.log(this.$hostname)
break;
}
@@ -101,7 +101,7 @@
case '011013':
case '011412':{
// this.$hostname = 'http://api2.arrahn'
this.sethostname('http://localhost:8000')
this.sethostname('http://api2.arrahn')
console.log(this.$hostname)
break;
}
@@ -113,11 +113,11 @@
case '011234':
case '011233':{
// this.$hostname = 'http://api3.arrahn'
this.sethostname('http://localhost:8000')
this.sethostname('http://api3.arrahn')
console.log(this.$hostname)
break;
}
default: this.sethostname('http://localhost:8000')
default: this.sethostname('http://api.arrahn')
break;
}
}