diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index ff277a86f6..693a5ad265 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -17,6 +17,12 @@ jobs: steps: - uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' # 或者您需要的其他版本 + - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" diff --git a/src/frontend/devops-op/src/views/repoConfig/components/EditRepoConfigDialog.vue b/src/frontend/devops-op/src/views/repoConfig/components/EditRepoConfigDialog.vue index 615118d51a..4e57727556 100644 --- a/src/frontend/devops-op/src/views/repoConfig/components/EditRepoConfigDialog.vue +++ b/src/frontend/devops-op/src/views/repoConfig/components/EditRepoConfigDialog.vue @@ -176,7 +176,7 @@ export default { } else { this.cleanValue = this.repoConfig.configuration.settings.cleanupStrategy.cleanupValue } - if (this.repoConfig.configuration.settings.cleanupStrategy.cleanTargets.length === 0) { + if (!this.repoConfig.configuration.settings.cleanupStrategy.cleanTargets || this.repoConfig.configuration.settings.cleanupStrategy.cleanTargets.length === 0) { this.repoConfig.configuration.settings.cleanupStrategy.cleanTargets = [''] } this.data = this.repoConfig.configuration.settings.cleanupStrategy.cleanupValue