dsh-tokenbank 0.1.69 → 0.1.70
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/lib/client.js +6 -4
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1280,11 +1280,13 @@ window.__ModuleLoader__.load({
|
|
|
1280
1280
|
var snap = useTbStore()
|
|
1281
1281
|
var portal = (tbStore.get().portalUrl) || 'https://bank.skillpie.cn'
|
|
1282
1282
|
var hintClosed = React.useState(false)
|
|
1283
|
-
|
|
1283
|
+
// 初始值取当前登录态:挂载时已登录不算「登录跃迁」,避免误清关闭标记
|
|
1284
|
+
var prevLogin = React.useRef(Boolean(snap.loggedIn))
|
|
1284
1285
|
React.useEffect(function () {
|
|
1285
|
-
if (snap.loggedIn
|
|
1286
|
-
|
|
1287
|
-
//
|
|
1286
|
+
if (!snap.loggedIn) { prevLogin.current = false; return }
|
|
1287
|
+
if (!prevLogin.current) {
|
|
1288
|
+
// 真正的「未登录 → 登录」跃迁:重新展示提示
|
|
1289
|
+
prevLogin.current = true
|
|
1288
1290
|
try { window.sessionStorage.removeItem('tb-deposit-hint-closed') } catch (e) {}
|
|
1289
1291
|
hintClosed[1](false)
|
|
1290
1292
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tokenbank",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.70",
|
|
4
4
|
"description": "DSH 免费模型:一键注册 TokenBank 领免费 APIKey 送 $5 体验金,免费 GLM 模型直接进模型列表;自带余额查询、API Key 密钥托管(临时额度转永久)、每日签到、充值入口(支付宝),获取免费模型无需自建中转。致敬 dsh-our-free-model。官网 https://bank.skillpie.cn",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|