|
@@ -87,15 +87,19 @@ Vue.mixin({
|
|
|
},
|
|
|
methods: {
|
|
|
async serverLog(level, logText) {
|
|
|
- await this.$http.post(
|
|
|
- "/api/ecs_core/log/studentClient/" + level,
|
|
|
- logText,
|
|
|
- {
|
|
|
- headers: {
|
|
|
- "Content-Type": "text/plain"
|
|
|
+ try {
|
|
|
+ await this.$http.post(
|
|
|
+ "/api/ecs_core/log/studentClient/" + level,
|
|
|
+ logText,
|
|
|
+ {
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "text/plain"
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- );
|
|
|
+ );
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ }
|
|
|
},
|
|
|
logout() {
|
|
|
localStorage.removeItem("phoneVerified");
|