fix
This commit is contained in:
1
.env
1
.env
@@ -1,2 +1,3 @@
|
||||
# NODE_ENV = 'production'
|
||||
NODE_ENV = 'development'
|
||||
VUE_APP_BASE_URL = 'http://www.aida.com.hk'
|
||||
|
||||
@@ -32,6 +32,13 @@
|
||||
@click.stop="changeLanguage()"
|
||||
></div>
|
||||
</div>
|
||||
<div
|
||||
v-if="userInfo.userId == 83"
|
||||
class="trialApproval button_second"
|
||||
@click="turnToPage('trialApproval')"
|
||||
>
|
||||
Trial Approval
|
||||
</div>
|
||||
</div>
|
||||
<nav class="header_nav_content">
|
||||
<div
|
||||
@@ -596,9 +603,10 @@ export default defineComponent({
|
||||
transform: rotate(180deg);
|
||||
animation-direction: 0.5s;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
.trialApproval{
|
||||
margin-left: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent,ref,createVNode,computed} from 'vue'
|
||||
import { setCookie, getCookie, WriteCookie } from "@/tool/cookie";
|
||||
import HeaderComponent from "@/component/HomePage/Header.vue";
|
||||
import HistoryDetail from "@/component/Detail/HistoryDetail.vue";
|
||||
import router from '@/router/index'
|
||||
@@ -133,8 +134,13 @@ export default defineComponent({
|
||||
let historyTable:any = this.$refs.historyTable
|
||||
this.historyTableHeight = historyTable.clientHeight - 130
|
||||
this.getHistoryList()
|
||||
// if()
|
||||
router.replace('/login')
|
||||
this.userInfo = JSON.parse((getCookie("userInfo") as any));
|
||||
|
||||
if(this.userInfo.userId == 83){
|
||||
|
||||
}else{
|
||||
router.replace('/home')
|
||||
}
|
||||
|
||||
},
|
||||
methods:{
|
||||
|
||||
Reference in New Issue
Block a user