Skip to content

Commit 8b421b8

Browse files
feat: 添加ak,sk的flyway
1 parent c94c02f commit 8b421b8

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
-- ----------------------------
2+
-- Table structure for user_key
3+
-- ----------------------------
4+
DROP TABLE IF EXISTS `user_key`;
5+
CREATE TABLE `user_key` (
6+
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
7+
`user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
8+
`access_key` varchar(50) NOT NULL COMMENT 'access_key',
9+
`secret_key` varchar(50) NOT NULL COMMENT 'secret key',
10+
`create_time` bigint(13) NOT NULL COMMENT '创建时间',
11+
`status` varchar(10) DEFAULT NULL COMMENT '状态',
12+
PRIMARY KEY (`id`) USING BTREE,
13+
UNIQUE KEY `IDX_AK` (`access_key`),
14+
KEY `IDX_USER_K_ID` (`user_id`) USING BTREE
15+
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='用户KEY';

frontend/src/layout/components/Topbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<el-dropdown-item>{{ $t('commons.personal_info') }}</el-dropdown-item>
5555
</router-link>
5656

57-
<router-link to="/ukey/index">
57+
<router-link v-if="$store.getters.validate" to="/ukey/index">
5858
<el-dropdown-item>{{ $t('commons.ukey_title') }}</el-dropdown-item>
5959
</router-link>
6060

0 commit comments

Comments
 (0)