Skip to content

Commit

Permalink
fix: the error that version is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Oct 9, 2021
1 parent eb2ff64 commit 65555d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/components/viewer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { setConfig } from '@vue-cesium/utils/config'
import { LocaleInjectionKey, localeProviderMaker } from '@vue-cesium/composables'
import Viewer from './src'
import useLog from '@vue-cesium/composables/private/use-log'
import { version } from '../../vue-cesium/version'
const logger = useLog(undefined!)

Viewer.install = (app: App, opts: InstallOptions): void => {
Expand All @@ -35,7 +36,7 @@ Viewer.install = (app: App, opts: InstallOptions): void => {
app.component(Viewer.name, Viewer)

if (process.env.NODE_ENV === 'development') {
logger.capsule('VueCesium', `v${option.version}`)
logger.capsule('VueCesium', `v${version}`)
logger.success('VueCesium https://github.com/zouyaoji/vue-cesium')
logger.success('Document https://zouyaoji.top/vue-cesium')
logger.success(`If you like it, give it a star reward, ^_^`)
Expand Down
2 changes: 0 additions & 2 deletions packages/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ const hasSymbol = typeof Symbol === 'function' && typeof Symbol.toStringTag ===
export interface InstallOptions {
cesiumPath?: string
accessToken?: string
lang?: any
i18n?: (...args: any[]) => string
scriptPromise?: Promise<unknown>
viewerUnloadingPromise?: Promise<boolean>
version?: string
cfg?: AnyObject
locale?: any
}
Expand Down

0 comments on commit 65555d4

Please sign in to comment.