Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
胡锦波
/
org-manager-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6cb5f2d6
authored
Apr 08, 2022
by
胡锦波
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1. init 去除首页,默认通讯录地址
2. init sdk开头
parent
712fae48
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
src/api/sdk.ts
src/views/pages/common-header/common-header.vue
src/api/sdk.ts
0 → 100644
View file @
6cb5f2d6
import
{
metaRow
,
UniplatSdk
,
UniplatSdkExtender
,
SdkListRowPredict
,
SdkListRowPredictObject
}
from
"uniplat-sdk"
;
import
{
TokenManager
,
UserController
}
from
"./token"
;
class
Sdk
{
private
setuped
=
false
;
private
uniplatSdk
!
:
UniplatSdk
;
public
getSdkInstance
()
{
if
(
this
.
uniplatSdk
)
{
return
this
.
uniplatSdk
;
}
return
(
this
.
uniplatSdk
=
new
UniplatSdk
());
}
public
setup
(
callback
?:
(
success
:
boolean
)
=>
void
)
{
if
(
this
.
setuped
)
{
return
callback
&&
callback
(
this
.
setuped
);
}
TokenManager
.
getUserTokenString
().
then
(
user
=>
{
// this.run(user, callback);
});
}
}
src/views/pages/common-header/common-header.vue
View file @
6cb5f2d6
...
...
@@ -44,7 +44,7 @@
}
private
goHome
()
{
this
.
go
(
Direction
.
Home
);
this
.
go
(
Direction
.
AddressBook
);
}
private
getTeammixEnterPriseSelectorEnvironment
()
{
...
...
@@ -84,7 +84,7 @@
EnterpriseHost
.
setOid
(
item
.
id
);
const
resolve
=
this
.
$router
.
resolve
({
name
:
Direction
[
Direction
.
Home
],
name
:
Direction
[
Direction
.
AddressBook
],
});
window
.
location
.
href
=
resolve
.
href
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment