@nebulars/sseengine 1.3.106 → 1.3.108

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nebulars/sseengine",
3
3
  "description": "An engine for sse",
4
- "version": "1.3.106",
4
+ "version": "1.3.108",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
7
  "dev": "forage serve --name sseengine",
@@ -19,5 +19,5 @@
19
19
  "axios": "^1.11.0",
20
20
  "vuex-fast": "^2.2.2"
21
21
  },
22
- "gitHead": "1eaf8ddee8d73739bd5ad5313ae203a8442f8c26"
22
+ "gitHead": "5d23164cb87a7bfb6c5e8a6ec733395c0898245e"
23
23
  }
@@ -1,6 +1,9 @@
1
1
  <style lang="less" scoped>
2
2
  .fqa-hots {
3
3
  & {
4
+ height: 30vh;
5
+ margin-top: 30px;
6
+
4
7
  display: flex;
5
8
  gap: @gap;
6
9
  }
@@ -24,20 +27,23 @@
24
27
 
25
28
  <template>
26
29
  <div class="fqa-hots">
27
- <div class="fqa-hots-btn" type="primary">
28
- <fqa-icon icon="FireOutlined" size="16" />
29
- <span>比亚迪最新财报解读</span>
30
- </div>
31
- <div class="fqa-hots-btn" type="primary">
32
- <fqa-icon icon="FireOutlined" size="16" />
33
- <span>比亚迪最新财报解读</span>
34
- </div>
35
- <div class="fqa-hots-btn" type="primary">
36
- <span>比亚迪最新财报解读</span>
37
- </div>
30
+ <a-space class="fqa-hots-btn" type="primary" :size="4" v-for="(item, index) in sseengine.hots" :key="index" @click="hotEnter(item.hot_keywords)">
31
+ <fqa-icon icon="FireOutlined" size="16" v-if="index < 3" />
32
+ <span>{{ item.hot_keywords }}</span>
33
+ </a-space>
38
34
  </div>
39
35
  </template>
40
36
 
41
37
  <script>
42
- export default {};
38
+ export default {
39
+ methods: {
40
+ async hotEnter(prompt) {
41
+ await this.$store.dispatch('sseengine/STATE_UPDATE', { prompt });
42
+ },
43
+ },
44
+
45
+ async mounted() {
46
+ await this.$store.dispatch('sseengine/HOTS_GET');
47
+ },
48
+ };
43
49
  </script>
package/src/store/hots.js CHANGED
@@ -1,8 +1,8 @@
1
1
  export default ({ http }) => {
2
2
  return {
3
3
  async HOTS_GET({ dispatch }) {
4
- const { data } = http.api.sethotKeywordsGetLatest();
5
- console.log(5, data);
4
+ const { data: hots } = await http.api.sethotKeywordsGetLatest({ env_type: globalThis.__PRESET__.ENV });
5
+ return { hots };
6
6
  },
7
7
  };
8
8
  };
@@ -22,6 +22,9 @@ import { default as TUB } from './tub';
22
22
  // Use Snap
23
23
  import { default as SNAP } from './snap';
24
24
 
25
+ // Use Hots
26
+ import { default as HOTS } from './hots';
27
+
25
28
  // Use Session
26
29
  import { default as SESSION } from './session';
27
30
 
@@ -202,6 +205,9 @@ export default (proxy = {}) => {
202
205
  // Snap
203
206
  ...SNAP(proxy),
204
207
 
208
+ // Hots
209
+ ...HOTS(proxy),
210
+
205
211
  // One Session
206
212
  ...SESSION(proxy),
207
213
 
package/sseengine.zip DELETED
Binary file