Skip to content

Commit

Permalink
Merge branch 'Chanzhaoyu:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
bbcvc authored Aug 31, 2023
2 parents ac7d368 + 2b2efe2 commit d8d9199
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ services:
> 注意: `Railway` 修改环境变量会重新 `Deploy`
### 使用 Sealos 部署
[![](https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg)](https://cloud.sealos.io/?openapp=system-fastdeploy%3FtemplateName%3Dchatgpt-web)
> 环境变量与 Docker 环境变量一致
### 手动打包
#### 后端服务
> 如果你不需要本项目的 `node` 接口,可以省略如下操作
Expand Down
3 changes: 3 additions & 0 deletions src/store/helper.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { createPinia } from 'pinia'

export const store = createPinia()
4 changes: 1 addition & 3 deletions src/store/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { App } from 'vue'
import { createPinia } from 'pinia'

export const store = createPinia()
import { store } from './helper'

export function setupStore(app: App) {
app.use(store)
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineStore } from 'pinia'
import type { AppState, Language, Theme } from './helper'
import { getLocalSetting, setLocalSetting } from './helper'
import { store } from '@/store'
import { store } from '@/store/helper'

export const useAppStore = defineStore('app-store', {
state: (): AppState => getLocalSetting(),
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/auth/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineStore } from 'pinia'
import { getToken, removeToken, setToken } from './helper'
import { store } from '@/store'
import { store } from '@/store/helper'
import { fetchSession } from '@/api'

interface SessionResponse {
Expand Down

0 comments on commit d8d9199

Please sign in to comment.