Browse Source

fix: 解决反向代理 1Panel 并启用 auth_basic 的时候无法登录的问题 (#1083)

Refs https://github.com/1Panel-dev/1Panel/issues/1082
pull/1084/head
zhengkunwang223 2 years ago committed by GitHub
parent
commit
a74cdcc061
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      backend/constant/session.go
  2. 14
      frontend/src/views/app-store/installed/detail/index.vue

2
backend/constant/session.go

@ -5,7 +5,7 @@ const (
SessionName = "psession"
AuthMethodJWT = "jwt"
JWTHeaderName = "Authorization"
JWTHeaderName = "PanelAuthorization"
JWTBufferTime = 3600
JWTIssuer = "1Panel"

14
frontend/src/views/app-store/installed/detail/index.vue

@ -9,11 +9,15 @@
</template>
</Header>
</template>
<el-descriptions border :column="1" v-if="!edit">
<el-descriptions-item v-for="(param, key) in params" :label="getLabel(param)" :key="key">
<span>{{ param.showValue && param.showValue != '' ? param.showValue : param.value }}</span>
</el-descriptions-item>
</el-descriptions>
<el-row v-if="!edit">
<el-col :span="22" :offset="1">
<el-descriptions border :column="1">
<el-descriptions-item v-for="(param, key) in params" :label="getLabel(param)" :key="key">
<span>{{ param.showValue && param.showValue != '' ? param.showValue : param.value }}</span>
</el-descriptions-item>
</el-descriptions>
</el-col>
</el-row>
<el-row v-else v-loading="loading">
<el-col :span="22" :offset="1">
<el-alert :title="$t('app.updateHelper')" type="warning" :closable="false" />

Loading…
Cancel
Save