ludc
2023-09-21 d5ac02d836e88e206c717d6d4e12e9a281fe7e40
Source/UBCS-WEB/src/page/login/index.vue
@@ -22,10 +22,11 @@
          <userLogin v-if="activeName==='user'"></userLogin>
          <thirdLogin v-else-if="activeName==='third'"></thirdLogin>
          <div class="login-menu">
            <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a>
            <!-- <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a> -->
            <!--<a href="#" @click.stop="activeName='code'">{{ $t('login.phoneLogin') }}</a>-->
            <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a>
            <a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a>
            <!-- <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a> -->
            <!-- <a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a> -->
            <a href="#" @click="openAnotherProject">打开另一个项目</a>
          </div>
        </div>
@@ -121,7 +122,17 @@
            loading.close();
          });
        }
      }
      },
      openAnotherProject() {
        const headers = {
          'headerName': 'headerValue'
        };
        const queryString = Object.keys(headers).map(key => key + '=' + headers[key]).join('&');
        const url = 'http://localhost:38000/#/sso?' + queryString;
        window.open(url);
    }
    }
  };
</script>