@nebulars/sseengine 1.3.112 → 1.3.113

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.112",
4
+ "version": "1.3.113",
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": "9413ea7a560bfe4bcdacdc2c3c953dff7ffcb9b4"
22
+ "gitHead": "baa58b00f7b973e406655d2a990c60a8c57850b1"
23
23
  }
@@ -37,7 +37,7 @@
37
37
  export default {
38
38
  methods: {
39
39
  async hotEnter(prompt) {
40
- await this.$store.dispatch('sseengine/STATE_UPDATE', { prompt });
40
+ await this.$store.dispatch('sseengine/HOTS_COMMIT', { prompt });
41
41
  },
42
42
  },
43
43
 
package/src/store/hots.js CHANGED
@@ -1,8 +1,17 @@
1
- export default ({ http }) => {
1
+ export default ({ $, http, kitchen }) => {
2
2
  return {
3
+ async HOTS_UPDATE({}, data) {
4
+ return data;
5
+ },
6
+
3
7
  async HOTS_GET({ dispatch }) {
4
8
  const { data: hots } = await http.api.sethotKeywordsGetLatest({ env_type: globalThis.__PRESET__.ENV });
5
9
  return { hots };
6
10
  },
11
+
12
+ async HOTS_COMMIT({ dispatch }, { prompt }) {
13
+ await dispatch('HOTS_UPDATE', { prompt });
14
+ return $('.fqa-submit').trigger('click');
15
+ },
7
16
  };
8
17
  };