Browse Source

插件安装

suhanqian 1 year ago
parent
commit
6671366b41
4 changed files with 18 additions and 0 deletions
  1. BIN
      public/chrome.zip
  2. BIN
      public/firefox.zip
  3. BIN
      public/illustrate.zip
  4. 18 0
      src/views/pages/login.vue

BIN
public/chrome.zip


BIN
public/firefox.zip


BIN
public/illustrate.zip


+ 18 - 0
src/views/pages/login.vue

@@ -55,6 +55,16 @@
                 <div v-if="showUsername" class="phone" @click="onPone()">手机号登录</div>
                 <!-- <a href="../../../onenettest.html"  class="phone" > 证书登录</a> -->
                 <div  class="phone" @click="CertLogin()">证书登录</div>
+                <el-dropdown  @command="handleCommand" >
+                          <span class="phone">插件下载</span>
+                        <template #dropdown>
+                          <el-dropdown-menu>
+                            <el-dropdown-item command="illustrate.zip">安装步骤说明</el-dropdown-item>
+                            <el-dropdown-item command="chrome.zip">谷歌浏览器</el-dropdown-item>
+                            <el-dropdown-item command="firefox.zip">火狐浏览器</el-dropdown-item>
+                          </el-dropdown-menu>
+                        </template>
+                </el-dropdown>
               </div>
             </el-form>
           </div>
@@ -121,6 +131,14 @@ export default {
     this.getCaptcha()
   },
   methods: {
+    //证书插件下载
+    handleCommand (filename) {
+      const a = document.createElement('a');
+      a.href = filename;
+      a.download = filename;
+      document.body.appendChild(a);
+      a.click();
+    },
     // 获取验证码
     getCaptcha () {
       this.dataForm.deviceId = getUUID()