@liujitcn/kratos-uni-app-system 0.0.66 → 0.0.68
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/dist/index.mjs
CHANGED
|
@@ -21,6 +21,10 @@ var NotificationServiceImpl = class {
|
|
|
21
21
|
const data = Object.fromEntries(
|
|
22
22
|
Object.entries(request).filter(([, value]) => value !== void 0)
|
|
23
23
|
);
|
|
24
|
+
if (data.page_num === void 0)
|
|
25
|
+
data.page_num = 1;
|
|
26
|
+
if (data.page_size === void 0)
|
|
27
|
+
data.page_size = 20;
|
|
24
28
|
const response = await http({
|
|
25
29
|
url: NOTIFICATION_URL,
|
|
26
30
|
method: "GET",
|
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.68",
|
|
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.68"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"esbuild": "^0.20.2",
|
|
@@ -27,6 +27,9 @@ export class NotificationServiceImpl implements NotificationService {
|
|
|
27
27
|
const data = Object.fromEntries(
|
|
28
28
|
Object.entries(request).filter(([, value]) => value !== undefined),
|
|
29
29
|
)
|
|
30
|
+
// 后端 buf.validate 要求 page_num>=1;游标模式下该值不参与查询,补默认值保证校验通过。
|
|
31
|
+
if (data.page_num === undefined) data.page_num = 1
|
|
32
|
+
if (data.page_size === undefined) data.page_size = 20
|
|
30
33
|
const response = await http<Partial<PageNotificationResponse>>({
|
|
31
34
|
url: NOTIFICATION_URL,
|
|
32
35
|
method: 'GET',
|
package/src/locales/README.md
CHANGED
|
@@ -97,7 +97,9 @@ function handleKnowledgeToggle(knowledgeId: number) {
|
|
|
97
97
|
@tap="openModelPicker"
|
|
98
98
|
>
|
|
99
99
|
<text class="composer-model-chip__spark">✦</text>
|
|
100
|
-
<text class="composer-model-chip__label">{{
|
|
100
|
+
<text class="composer-model-chip__label">{{
|
|
101
|
+
selectedModelDisplayName || modelPlaceholder
|
|
102
|
+
}}</text>
|
|
101
103
|
<uni-icons type="down" size="12" color="#8a8f99" />
|
|
102
104
|
</view>
|
|
103
105
|
<view
|
|
@@ -1309,7 +1309,9 @@ function showError(error: unknown, fallback: string) {
|
|
|
1309
1309
|
>
|
|
1310
1310
|
<view v-if="item.role === 'ai' && item.model" class="reply-meta">
|
|
1311
1311
|
<text class="reply-tag">{{ t('system.ai.model_reply') }}</text>
|
|
1312
|
-
<text class="reply-model">{{
|
|
1312
|
+
<text class="reply-model">{{
|
|
1313
|
+
resolveModelDisplayName(modelProviders, item.model)
|
|
1314
|
+
}}</text>
|
|
1313
1315
|
</view>
|
|
1314
1316
|
<view class="bubble-content">{{ item.content }}</view>
|
|
1315
1317
|
<view v-if="item.attachments.length" class="attachment-list">
|