diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index 2a71310..6d05643 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -35,6 +35,7 @@ module.exports = {
'no-debugger': 'off',
// Remove conflicting rules with Prettier
'prettier/prettier': 'off',
+ 'rule-name': 'off',
'vue/html-indent': [
'error',
4,
diff --git a/nuxt.config.ts b/nuxt.config.ts
index b377494..2e86197 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -67,12 +67,14 @@ export default defineNuxtConfig({
link: [
{ rel: 'icon', type: 'image/svg+xml', href: 'https://blog-cli.oss-cn-hangzhou.aliyuncs.com/logo.ico' },
{ rel: 'dns-prefetch', href: 'https://blog-cli.oss-cn-hangzhou.aliyuncs.com' },
- { rel: 'dns-prefetch', href: 'https://docs.gaojianghua.cn' }
+ { rel: 'dns-prefetch', href: 'https://docs.gaojianghua.cn' },
+ { rel: 'stylesheet', href: 'https://unpkg.com/cesium@1.116/Build/Cesium/Widgets/widgets.css' }
],
script: [
{
src: 'https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/svg_28150_11.961f67029185d625b7656c914468febb.js'
- }
+ },
+ { src: 'https://unpkg.com/cesium@1.116/Build/Cesium/Cesium.js', defer: true }
]
}
}
diff --git a/src/app.d.ts b/src/app.d.ts
index 6dff0af..6269bde 100644
--- a/src/app.d.ts
+++ b/src/app.d.ts
@@ -1,8 +1,8 @@
/*
* @Author : 15257184434 g598670138@163.com
* @Date : 2023-01-15 09:25:15
- * @LastEditors : 15257184434 g598670138@163.com
- * @LastEditTime : 2023-01-15 09:25:16
+ * @LastEditors: 高江华
+ * @LastEditTime: 2024-04-08 10:02:48
* @FilePath : \varlet-nuxt3-example\src\app.d.ts
* @Description :
*
@@ -13,3 +13,13 @@ declare module '*.vue' {
const componentOptions: ComponentOptions;
export default componentOptions;
}
+declare module './data.ts'
+declare global {
+ interface Window {
+ CESIUM_BASE_URL: string
+ }
+}
+declare module 'cesium' {
+ // 定义或导入Cesium的类型定义
+ export = Cesium;
+}
diff --git a/src/data.ts b/src/data.ts
index d6d90cd..23f3c88 100644
--- a/src/data.ts
+++ b/src/data.ts
@@ -122,6 +122,10 @@ const menus = [
name: '文章',
path: '/article'
},
+ {
+ name: '作品',
+ path: '/works'
+ },
{
name: '游戏',
path: '/game'
@@ -159,10 +163,29 @@ const backMenus = [
}
];
+const worksMenus = [
+ {
+ name: 'Three',
+ type: 0
+ },
+ {
+ name: 'Cesium',
+ type: 1
+ },
+ {
+ name: 'Charts',
+ type: 2
+ }
+]
+
+const defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIwNjZhYTIxZC0zOGRmLTQxZDUtYjY3YS05MWNmYTViOGQxNTYiLCJpZCI6MjA3MjIzLCJpYXQiOjE3MTI1NDU3ODJ9.x3KnX-97CZIytvhOgG5Ox5TopzNUb_qH4_6VSwpLUA4'
+
export default {
articleMenus,
gameMenus,
list,
menus,
- backMenus
+ backMenus,
+ worksMenus,
+ defaultAccessToken
};
diff --git a/src/pages/works-details/[id].vue b/src/pages/works-details/[id].vue
new file mode 100644
index 0000000..db05402
--- /dev/null
+++ b/src/pages/works-details/[id].vue
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
diff --git a/src/pages/works.vue b/src/pages/works.vue
new file mode 100644
index 0000000..2b3e3d9
--- /dev/null
+++ b/src/pages/works.vue
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+