Skip to content

Commit c56b0a0

Browse files
committed
Change routing path to 'login'
1 parent 2c0c6cd commit c56b0a0

File tree

8 files changed

+17
-15
lines changed

8 files changed

+17
-15
lines changed

coreui/src/containers/TheHeaderDropdownAccnt.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default {
8080
let self = this;
8181
axios.post('/api/logout?token=' + localStorage.getItem("api_token"),{})
8282
.then(function (response) {
83-
self.$router.push({ path: 'login' });
83+
self.$router.push({ path: '/login' });
8484
}).catch(function (error) {
8585
console.log(error);
8686
});

coreui/src/views/notes/EditNote.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
v-model="note.content"
2424
/>
2525
<CInput label="Applies to date" type="date" id="applies_to_date" v-model="note.applies_to_date"/>
26-
<CSelect id="status_id"
26+
<CSelect
27+
id="status_id"
2728
:value.sync="note.status_id"
2829
:options="statuses"
2930
label="Status"
30-
>
31-
</CSelect>
31+
/>
3232
<CInput label="Note type" type="text" id="note_type" v-model="note.note_type"></CInput>
3333

3434
<CButton color="primary" @click="update()">Edit</CButton>
@@ -58,6 +58,7 @@ export default {
5858
status_id: null,
5959
note_type: '',
6060
},
61+
// status_id: null,
6162
statuses: [],
6263
message: '',
6364
dismissSecs: 7,
@@ -94,7 +95,7 @@ export default {
9495
self.showAlert();
9596
}else{
9697
console.log(error);
97-
self.$router.push({ path: 'login' });
98+
self.$router.push({ path: '/login' });
9899
}
99100
});
100101
},
@@ -109,9 +110,10 @@ export default {
109110
let data = JSON.parse(JSON.stringify(response.data));
110111
self.note = data.note;
111112
self.statuses = data.statuses;
113+
self.$forceUpdate()
112114
}).catch(function (error) {
113115
console.log(error);
114-
self.$router.push({ path: 'login' });
116+
self.$router.push({ path: '/login' });
115117
});
116118
}
117119
}

coreui/src/views/notes/Note.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default {
5555
self.note = response.data;
5656
}).catch(function (error) {
5757
console.log(error);
58-
self.$router.push({ path: 'login' });
58+
self.$router.push({ path: '/login' });
5959
});
6060
}
6161
}

coreui/src/views/notes/Notes.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default {
137137
self.getNotes();
138138
}).catch(function (error) {
139139
console.log(error);
140-
self.$router.push({ path: 'login' });
140+
self.$router.push({ path: '/login' });
141141
});
142142
},
143143
createNote () {
@@ -156,7 +156,7 @@ export default {
156156
self.items = response.data;
157157
}).catch(function (error) {
158158
console.log(error);
159-
self.$router.push({ path: 'login' });
159+
self.$router.push({ path: '/login' });
160160
});
161161
}
162162
},

coreui/src/views/pages/Register.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
self.password = '';
8383
self.password_confirmation = '';
8484
console.log(response);
85-
self.$router.push({ path: 'login' });
85+
self.$router.push({ path: '/login' });
8686
})
8787
.catch(function (error) {
8888
console.log(error);

coreui/src/views/users/EditUser.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default {
7272
self.showAlert();
7373
}).catch(function (error) {
7474
console.log(error);
75-
self.$router.push({ path: 'login' });
75+
self.$router.push({ path: '/login' });
7676
});
7777
},
7878
countDownChanged (dismissCountDown) {
@@ -90,7 +90,7 @@ export default {
9090
self.email = response.data.email;
9191
}).catch(function (error) {
9292
console.log(error);
93-
self.$router.push({ path: 'login' });
93+
self.$router.push({ path: '/login' });
9494
});
9595
}
9696
}

coreui/src/views/users/User.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
self.items = items.map(([key, value]) => {return {key: key, value: value}});
5252
}).catch(function (error) {
5353
console.log(error);
54-
self.$router.push({ path: 'login' });
54+
self.$router.push({ path: '/login' });
5555
});
5656
}
5757
}

coreui/src/views/users/Users.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default {
106106
self.getUsers();
107107
}).catch(function (error) {
108108
console.log(error);
109-
self.$router.push({ path: 'login' });
109+
self.$router.push({ path: '/login' });
110110
});
111111
},
112112
countDownChanged (dismissCountDown) {
@@ -123,7 +123,7 @@ export default {
123123
self.you = response.data.you;
124124
}).catch(function (error) {
125125
console.log(error);
126-
self.$router.push({ path: 'login' });
126+
self.$router.push({ path: '/login' });
127127
});
128128
}
129129
},

0 commit comments

Comments
 (0)