This commit is contained in:
X1627315083
2023-12-14 15:49:59 +08:00
parent 72ea60ec7b
commit f8d476df50
3 changed files with 19 additions and 4 deletions

1
.env
View File

@@ -1,2 +1,3 @@
# NODE_ENV = 'production'
NODE_ENV = 'development'
VUE_APP_BASE_URL = 'http://www.aida.com.hk'

View File

@@ -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;
}
}
}

View File

@@ -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:{