feat(sites): add 3.12 version runtime (#1001)

This commit is contained in:
gimmyhehe 2023-12-03 09:50:34 +08:00 committed by GitHub
parent 6696dbf6df
commit 81c8c3da62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -17,11 +17,11 @@ import logoUrl from './assets/opentiny-logo.svg?url'
import GitHub from './icons/Github.vue'
import Share from './icons/Share.vue'
const VERSION = 'tiny-vue-version'
const VERSION = 'tiny-vue-version-3.12'
const LAYOUT = 'playground-layout'
const LAYOUT_REVERSE = 'playground-layout-reverse'
const versions = ['3.11', '3.10', '3.9', '3.8']
const versions = ['3.12', '3.11', '3.10', '3.9', '3.8']
const latestVersion = localStorage.getItem(VERSION) || versions[0]
const cdnHost = localStorage.getItem('setting-cdn')
const getRuntime = (version) => `${cdnHost}/@opentiny/vue@${version}/runtime/`