Add docker rename volume tool
This commit is contained in:
@ -26,9 +26,9 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
toolData: {
|
||||
data: '',
|
||||
data: ""
|
||||
},
|
||||
toolResult: '',
|
||||
toolResult: ""
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@ -37,7 +37,7 @@ export default {
|
||||
|
||||
if (word.length <= 3) {
|
||||
this.toolResult = word;
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
const firstLetter = word[0];
|
||||
@ -45,9 +45,9 @@ export default {
|
||||
const numberOfLetters = word.length - 2;
|
||||
|
||||
this.toolResult = `${firstLetter}${numberOfLetters}${lastLetter}`;
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
Reference in New Issue
Block a user