@liujitcn/kratos-uni-app-system 0.0.43 → 0.0.45
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/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git@github.com:liujitcn/kratos-admin.git"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.0.
|
|
10
|
+
"version": "0.0.45",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@dcloudio/uni-app": "3.0.0-5010520260709002",
|
|
36
36
|
"@dcloudio/uni-ui": "^1.4.28",
|
|
37
37
|
"vue": "^3.4.21",
|
|
38
|
-
"@liujitcn/kratos-uni-app-core": "^0.0.
|
|
38
|
+
"@liujitcn/kratos-uni-app-core": "^0.0.45"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"esbuild": "^0.20.2",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { useUserStore } from '@liujitcn/kratos-uni-app-core/stores'
|
|
2
|
+
import { useSettingStore, useUserStore } from '@liujitcn/kratos-uni-app-core/stores'
|
|
3
3
|
import { computed } from 'vue'
|
|
4
4
|
import { formatSrc } from '@liujitcn/kratos-uni-app-core/utils/index'
|
|
5
5
|
import { navigateToLogin } from '@liujitcn/kratos-uni-app-core/utils/navigation'
|
|
@@ -10,6 +10,7 @@ import { useI18n } from '@liujitcn/kratos-uni-app-core'
|
|
|
10
10
|
|
|
11
11
|
// 获取会员信息
|
|
12
12
|
const userStore = useUserStore()
|
|
13
|
+
const settingStore = useSettingStore()
|
|
13
14
|
const { t } = useI18n()
|
|
14
15
|
const isLoggedIn = computed(() => userStore.isAuthenticated())
|
|
15
16
|
const profile = computed(() => userStore.userInfo)
|
|
@@ -82,7 +83,7 @@ const navigateToProfile = () => navigateAppRoute('app/profile')
|
|
|
82
83
|
<view class="settings" @tap="navigateToSettings">{{ t('core.settings.title') }}</view>
|
|
83
84
|
</view>
|
|
84
85
|
<!-- AI 助手入口 -->
|
|
85
|
-
<view class="ai-entry" @tap="navigateToAi">
|
|
86
|
+
<view v-if="settingStore.aiEnabled" class="ai-entry" @tap="navigateToAi">
|
|
86
87
|
<view class="ai-entry__icon">AI</view>
|
|
87
88
|
<view class="ai-entry__content">
|
|
88
89
|
<view class="ai-entry__title">{{ t('system.settings.ai_title') }}</view>
|