fix hostname
This commit is contained in:
@@ -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!')
|
||||
|
||||
Vendored
+3
-3
@@ -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: {
|
||||
|
||||
@@ -47,9 +47,6 @@ export default{
|
||||
]
|
||||
}
|
||||
},
|
||||
created(){
|
||||
console.log(this.$props.items)
|
||||
},
|
||||
methods:{
|
||||
redirectHome: function(){
|
||||
return '/';
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user