Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const config = {
},
{
find: 'vue-i18n',
replacement: 'vue-i18n/dist/vue-i18n.cjs.js', // Resolve the i18n warning issue
replacement: 'vue-i18n/dist/vue-i18n.esm-bundler.js', // Resolve the i18n warning issue
},
{
find: 'vue',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default defineConfig({
},
{
find: 'vue-i18n',
replacement: 'vue-i18n/dist/vue-i18n.cjs.js', // Resolve the i18n warning issue
replacement: 'vue-i18n/dist/vue-i18n.esm-bundler.js', // Resolve the i18n warning issue
},
{
find: 'vue',
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkits/pro/template/tinyvue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"query-string": "^7.0.1",
"vue": "^3.2.31",
"vue-eslint-parser": "^9.1.0",
"vue-i18n": "^9.2.0-beta.17",
"vue-i18n": "^9.3.0",
"vue-router": "^4.0.14"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
color: #000;
}

.title {
Expand All @@ -297,7 +298,18 @@
}
}
:deep(.tiny-tree-node__wrapper > .is-current > .tiny-tree-node__content) {
background: var(--ti-tree-menu-node-hover-bg-color);
color: #000 !important;
background: none !important;
margin-left: 0 !important;
&:hover {
background: #fff !important;
color: #fff !important;
}
}
:deep(.tiny-tree-node__wrapper > .is-expanded > .tiny-tree-node__children
> .tiny-tree-node__wrapper > .is-current > .tiny-tree-node__content
) {
background-color: var(--ti-tree-menu-node-hover-bg-color) !important;
margin-left: 0 !important;
&:hover {
background: var(--ti-tree-menu-node-hover-bg-color) !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
<div class="divider"></div>
</li>
<li @click="changeLan">
<span>{{ i18.locale.value }}</span>
<span v-if="i18.locale.value === 'zhCN'">中文</span>
<span v-else>English</span>
<img src="@/assets/images/lan.png" alt="lan" class="navbar-lan" />
<div v-if="lan" class="trigger-lan">
<li
Expand Down Expand Up @@ -122,6 +123,7 @@

const switchRoles = async () => {
const res = await userStore.switchRoles();

Modal.message({
message: res as string,
status: 'success',
Expand Down