12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <template>
- <div id="app">
- <router-view v-if="isRouterAlive"></router-view>
- </div>
- </template>
-
- <script>
- import axios from 'axios'
- import { getOrgs, changeOrg } from "@/api/config";
- export default {
- name: "App",
- provide() {
- return {
- reload: this.reload
- };
- },
- data () {
- return {
- isRouterAlive: true,
-
- showErr: false,
- showWsErr: false,
- }
- },
-
- created(){
-
-
-
-
-
-
-
-
-
-
-
- },
- methods: {
- reload () {
- this.isRouterAlive = false
- this.$nextTick(function () {
- this.isRouterAlive = true
- })
- },
- },
- watch:{
- $route(to,from){
-
- if(to.path.indexOf('/patients/patient')== -1){
- window.sessionStorage.removeItem('patientKey')
- }
- }
- },
- };
- </script>
-
- <style>
- body .el-table th.gutter {
- display: table-cell !important;
- }
-
- </style>
|