|
@@ -282,7 +282,10 @@
|
|
|
adaptive: false
|
|
|
},
|
|
|
}],
|
|
|
- })
|
|
|
+ })
|
|
|
+ const linTo = (url) => {
|
|
|
+ window.open(url)
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -301,13 +304,14 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="home-nav-right">
|
|
|
- <div class="item no-token" v-if="!user.userId">
|
|
|
- <el-button size="default" @click="loginVisible = true">
|
|
|
- 登录
|
|
|
- </el-button>
|
|
|
- </div>
|
|
|
- <el-dropdown v-else @command="commandFunction" :popper-options="dropOption">
|
|
|
- <div class="item no-token">
|
|
|
+ <el-button class="item no-token" v-if="!user.userId" size="default" @click="loginVisible = true">
|
|
|
+ 登录
|
|
|
+ </el-button>
|
|
|
+ <el-button class="item" type="primary" size="default" @click="linTo('https://www.workark.com/workark/index.html')">
|
|
|
+ WorkArk
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown v-if="user.userId" @command="commandFunction" :popper-options="dropOption">
|
|
|
+ <div class="item">
|
|
|
<el-avatar :size="36" :src="user.portrait"></el-avatar>
|
|
|
<span class="name">{{user.userName}}</span>
|
|
|
</div>
|
|
@@ -358,7 +362,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-dialog v-model="loginVisible" title="登录" width="440px">
|
|
|
+ <el-dialog v-model="loginVisible" title="登录" width="440px" :close-on-click-modal="false">
|
|
|
<login v-if="loginVisible" @callback="callback"></login>
|
|
|
</el-dialog>
|
|
|
<el-dialog v-model="selectVisible" title="选项" width="800px" class="ai-dialog select-dialog">
|
|
@@ -444,13 +448,25 @@
|
|
|
}
|
|
|
|
|
|
.home-nav-right {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
.item {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ margin-left: 15px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-button span {
|
|
|
+ font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.no-token {
|
|
|
cursor: pointer;
|
|
|
+
|
|
|
+ &.el-button--default {
|
|
|
+ color: rgb(28, 28, 28);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.name {
|