vona-module-a-swagger 5.0.21 → 5.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -92,7 +92,7 @@ let ControllerRapidoc = (_dec$2 = Controller({
|
|
|
92
92
|
async index(version) {
|
|
93
93
|
// signin
|
|
94
94
|
let accessToken = '';
|
|
95
|
-
if (this.app.meta.
|
|
95
|
+
if (this.app.meta.isDev || this.app.meta.isTest) {
|
|
96
96
|
const jwt = await this.bean.passport.signinSystem('swagger', '-2');
|
|
97
97
|
accessToken = jwt.accessToken;
|
|
98
98
|
}
|
|
@@ -149,7 +149,7 @@ let ControllerSwagger = (_dec$1 = Controller({
|
|
|
149
149
|
async index(version) {
|
|
150
150
|
// signin
|
|
151
151
|
let accessToken = '';
|
|
152
|
-
if (this.app.meta.
|
|
152
|
+
if (this.app.meta.isDev || this.app.meta.isTest) {
|
|
153
153
|
const jwt = await this.bean.passport.signinSystem('swagger', '-2');
|
|
154
154
|
accessToken = jwt.accessToken;
|
|
155
155
|
}
|