feat: file name on page title

pull/1373/head
Ramires Viana 2021-04-23 11:59:04 +00:00
parent 7d1e03075d
commit 16a34defc0
2 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,7 @@ export default {
} }
this.$store.commit("updateRequest", res); this.$store.commit("updateRequest", res);
document.title = res.name; document.title = `${res.name} - ${this.$route.name}`;
} catch (e) { } catch (e) {
this.error = e; this.error = e;
} finally { } finally {

View File

@ -278,6 +278,7 @@ export default {
this.token = file.token || ""; this.token = file.token || "";
this.updateRequest(file); this.updateRequest(file);
document.title = `${file.name} - ${this.$route.name}`;
} catch (e) { } catch (e) {
this.error = e; this.error = e;
} finally { } finally {