w-ui-v1 1.0.16 → 1.0.17

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,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
@@ -50,6 +50,9 @@ function handleLogin() {
50
50
  }
51
51
  showSuccess('登录成功')
52
52
  uni.setStorageSync('token', data.token)
53
+ uni.setStorageSync('userInfo', {
54
+ usernamse:model.username
55
+ })
53
56
  uni.reLaunch({
54
57
  url: '/pages/index/index',
55
58
  })
package/w-user/w-user.vue CHANGED
@@ -27,8 +27,7 @@ defineOptions({
27
27
  })
28
28
  const message = useMessage()
29
29
  const userInfo = ref({
30
- '用户名': 'admin',
31
- '昵称': '管理员'
30
+ '用户名':uni.getStorageSync('userInfo').username,
32
31
  })
33
32
  const quit = () => {
34
33
  message