dify
This commit is contained in:
7
dify/web/app/components/share/utils.ts
Normal file
7
dify/web/app/components/share/utils.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export const isTokenV1 = (token: Record<string, any>) => {
|
||||
return !token.version
|
||||
}
|
||||
|
||||
export const getInitialTokenV2 = (): Record<string, any> => ({
|
||||
version: 2,
|
||||
})
|
||||
Reference in New Issue
Block a user