浏览代码

按钮修改

duy 1 年之前
父节点
当前提交
9d117b30cf
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/views/using/query.vue

+ 6 - 3
src/views/using/query.vue

@@ -101,7 +101,8 @@
                                         @row-click="tableRowClick" @selection-change="tableSelection"
                                     >
                                         <template #action="{ row }">
-                                            <el-link type="primary" @click.stop="consultFileClick(row, 1)">查阅案卷</el-link>
+                                            <el-link v-if="AppTheme === 'light'" type="primary" class="mylink" @click.stop="consultFileClick(row, 1)">查阅案卷</el-link>
+                                            <el-button v-else type="primary" size="small" @click.stop="consultFileClick(row, 1)">查阅案卷</el-button>
                                         </template>
                                     </hc-table>
                                     <template #action>
@@ -475,12 +476,14 @@ const tags = ref([])
 
 const userAgent = navigator.userAgent
 const isMac = userAgent.indexOf('Mac') !== -1
+const AppTheme = ref(useAppState.getTheme)
 
 //监听
 watch(() => [
-    useAppState.getBubble, tags.value,
-], ([bubble, Tags]) => {
+    useAppState.getBubble, tags.value, useAppState.getTheme,
+], ([bubble, Tags, theme]) => {
     isBubble.value = bubble
+    AppTheme.value = theme
    if (Tags.length == 0) {
     isShowheader.value = false
    } else {